brodie28 Posted February 7, 2007 Share Posted February 7, 2007 Is it possible to open a file, and have it open with whatever its default program is? Like if I specify a .txt file, it will open in notepad, or if I specify a JPEG it will open in my image viewer? Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 7, 2007 Moderators Share Posted February 7, 2007 Is it possible to open a file, and have it open with whatever its default program is?Like if I specify a .txt file, it will open in notepad, or if I specify a JPEG it will open in my image viewer?ShellExecute()OrRun + @ComSpec Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
someone Posted February 7, 2007 Share Posted February 7, 2007 (edited) ShellExecute will do just that; open with whatever program is associated to the file extension. EDIT: doh got beat... not sure how I got beat by 5 minutes I must be slow today.... Edited February 7, 2007 by someone While ProcessExists('Andrews bad day.exe') BlockInput(1) SoundPlay('Music.wav') SoundSetWaveVolume('Louder') WEnd 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