Jump to content

difference between.......


 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...