Jump to content
Sign in to follow this  
hx3

Return value of Run() ?

Recommended Posts

hx3

- How check path of a file while this file doesn't exist and return value of it.

Example :
if Run("notepa") Then
    MsgBox(0,"No success")
EndIf

- MsgBox doesn't work because run a file doesn't exist.

- How check while users input invalid key, Thanks you. :mellow:

Share this post


Link to post
Share on other sites
BrettF

Hello and welcome to the forums,

I think you might be looking for FileExists?

And in response to the question in your title, and a little explanation of your code...

Run returns the PID of the spawned process, otherwise 0.

We can look at 1 being true, and 0 being False, so basically what is happening If Run Not Equal 0, Then show messagebox.

Cheers,

Brett

Oh and what do you mean by value?

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  

×