Hi everyone, I normally use the shell command to open a program, or giver the user a commondialog box. Can someone please tell me how to open a file other than an executable?
Thank you
Printable View
Hi everyone, I normally use the shell command to open a program, or giver the user a commondialog box. Can someone please tell me how to open a file other than an executable?
Thank you
Hi Alex,
Depends what do you want to do with the file?, if it's a BAT file you could open it as you would a text file, read lines into a string and process them accordingly...
Sorry, I mean just excecute / run it though it were a program / exe for example. Nothing fancy like writing to this. Thank you
Perhaps you can try the ShellExecute API function
That's the one! Thank you!
you also can take a look on this page for more information about the ShellExecute API function
http://www.vbapi.com/ref/s/shellexecute.html