Jump to content

Recommended Posts

Posted

This command doesnt work, if i enter it into cmd it works though?

Does comspec work with unc names?

Run(@COMSPEC & " /c \\sydney\applications\scripts\restart.exe")

Posted

the extension (unc) by default isn't a windows executable. open a dos window and type in SET and hit enter. under windows 2000 i know to look for something that looks like this. PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

all those extnsions are executables. i dunno if there is a way to intergrate the (unc) without having to call an external program.

Posted (edited)

This command doesnt work, if i enter it into cmd it works though?

Does comspec work with unc names?

Run(@COMSPEC & " /c \\sydney\applications\scripts\restart.exe")

Can you try this, please.

Run(@COMSPEC & " /c \\sydney\applications\scripts\restart.exe", @SystemDir)
Edited by SlimShady
Posted

Good idea Shady! Standard windows cmd have problems if it start in a unc path!

@beerman

What is the meaning of you answer... Why should someone add .unc as executable extension?

Maybe you should read what unc is: HERE.

Posted

oops, sorry was under the pretense they were wanting to execute something. with an extension of some sort that was not a native executable. try to execute an autoit script from command line without having to call back to autoit executable.. :D:huh2::):lol:

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
  • Recently Browsing   0 members

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