brodie28 Posted February 7, 2007 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?
Moderators SmOke_N Posted February 7, 2007 Moderators 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.
someone Posted February 7, 2007 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
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