Aceguy Posted August 10, 2008 Share Posted August 10, 2008 whats the difference between (or the best to use) run or shellexecute.. what are the pros/cons. please help, and ty if you do. [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
herewasplato Posted August 10, 2008 Share Posted August 10, 2008 ...(or the best to use) run or shellexecute.."The best to use" is Run for most things. When ShellExecute functions is used - the script asks the operating system, "What application do you want me to use." ShellExecute might open an application that you have never used/seen before. [As in ShellExecute("test.txt")] However, if you want to print test.txt - then... ShellExecute("test.txt", "", "", "print") ...may be "the best to use". Then there is the value returned by Run and ShellExecute. Run returns the PID of the app that was started. ShellExecute returns 1 or 0. If you need the PID of the app that you started - then Run is best. :::dawns flame resistant suit::: [size="1"][font="Arial"].[u].[/u][/font][/size] 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