banjoman Posted December 19, 2005 Share Posted December 19, 2005 how can I run a Power Point show file (*.pps) with an Auto-it script? the Run command only runs certain files (*.exe, *.bat etc) thanks Link to comment Share on other sites More sharing options...
MHz Posted December 19, 2005 Share Posted December 19, 2005 This tested ok $fullpath = @MyDocumentsDir & '\Backups\Mail\Attachments\Chat rieur.pps' RunWait(@ComSpec & ' /c ' & '"' & $fullpath & '"', '', @SW_HIDE) Link to comment Share on other sites More sharing options...
erebus Posted December 19, 2005 Share Posted December 19, 2005 I think that Run() can run any file type that is already registered in your Windows system (i.e. *.pps are registered to Microsoft Powerpoint, *.txt to Notepad and so on). If you change the program you want to open each file type with, Run's behaviour should also change automatically. Link to comment Share on other sites More sharing options...
MHz Posted December 19, 2005 Share Posted December 19, 2005 I think that Run() can run any file type that is already registered in your Windows system (i.e. *.pps are registered to Microsoft Powerpoint, *.txt to Notepad and so on).If you change the program you want to open each file type with, Run's behaviour should also change automatically.AFAIK, Run() does not check associations in the registry. I receive a Unable to execute the external program error for even trying. Link to comment Share on other sites More sharing options...
banjoman Posted December 19, 2005 Author Share Posted December 19, 2005 AFAIK, Run() does not check associations in the registry. I receive a Unable to execute the external program error for even trying. I receive an error too - Unable to execute external program,the help file lists EXE, BAT, COM, or PIF only to use with the Run command Link to comment Share on other sites More sharing options...
w0uter Posted December 19, 2005 Share Posted December 19, 2005 i think run uses CreateProcess so it could never "create" a .txt My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Valuater Posted December 19, 2005 Share Posted December 19, 2005 (edited) i use start in the run command RunWait(@COMSPEC & " /c Start Powerpnt.exe", "", @SW_HIDE ) i believe this searches "registered" programs also help stats this 6. Why can I only use Run() to execute .exe files? What about .msi / .txt and others? Only a few file extensions are usually "runable" - these are .exe, .bat, .com, .pif. Other file types like .txt and .msi are actually executed with another program. When you double click on a "myfile.msi" file what actually happens in the background is that "msiexec.exe myfile.msi" is executed. So to run a .msi file from AutoIt you would do: RunWait("msiexec myfile.msi") Or, an even simpler way is to run the command "start" which will automatically work out how to execute the file for you: RunWait(@COMSPEC & " /c Start myfile.msi") 8) Edited December 19, 2005 by Valuater Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now