Sign in to follow this  
Followers 0

difference between.......

2 posts in this topic

...(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:::


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0