Sign in to follow this  
Followers 0
Grax

Execute a Network exe?

2 posts in this topic

I need to execute an exe that's located on the network without mapping a drive.

Such as "\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE"

How do I do this?

Run()... won't do it

Run(@ComSpec... Won't do it

ShellExecute()... Won't do it

Suggestions?

Thanks,

Andrew

Share this post


Link to post
Share on other sites



Run() will do it.

RunWait() will do it.

ShellExecute() will too.

Try:

$result = FileExists("\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE")

If $result Then

Msgbox(0,"","File exists")

Run("\\DOMAIN\NETLOGON\INSTALL\FILENAME.EXE", "\\DOMAIN\NETLOGON\INSTALL\")

Else

Msgbox(0,"","File doesn't exist")

EndIf

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