youknowwho4eva Posted August 4, 2008 Share Posted August 4, 2008 Is there a way to do a fileopen and choose the program for which to open the file? Giggity Link to comment Share on other sites More sharing options...
Developers Jos Posted August 4, 2008 Developers Share Posted August 4, 2008 (edited) FileOpen() opens the file to be able to do FileRead() or FileWrite() and doesn't have any relation with starting a program to open a file. You can use Run() or ShellExecute() for that. Jos Edited August 4, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted August 4, 2008 Author Share Posted August 4, 2008 Thank You Jos, I hadn't used the command yet, so I just assumed that it opened it in the default program. Giggity Link to comment Share on other sites More sharing options...
Monamo Posted August 4, 2008 Share Posted August 4, 2008 Along the lines of a "FileOpenWith" variation, you could use something along the following lines to use the Windows "Open With" prompt to open a file with a program other than the default association: $sFile = FileOpenDialog("Open File...",@ScriptDir,"(*.*)") If Not @error Then Run("rundll32.exe shell32.dll,OpenAs_RunDLL " &$sFile ,@SystemDir) Else Exit EndIf - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
youknowwho4eva Posted August 4, 2008 Author Share Posted August 4, 2008 Thank you Monamo, I'll look into that as well Giggity 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