Jump to content
Sign in to follow this  
Grax

Execute a Network exe?

Recommended Posts

Grax

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
weaponx

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  

×