Program 0 Posted June 23, 2004 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") Share this post Link to post Share on other sites
emmanuel 0 Posted June 23, 2004 does the Command window work with UNC names? "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites
Program 0 Posted June 23, 2004 yes if i type \\sydney\applications\scripts\restart.exe into the cmd window, it will run. Share this post Link to post Share on other sites
Somerset 3,040 Posted June 23, 2004 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. Spoiler Share this post Link to post Share on other sites
SlimShady 1 Posted June 23, 2004 (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 June 23, 2004 by SlimShady Share this post Link to post Share on other sites
ezzetabi 3 Posted June 23, 2004 Good idea Shady! Standard windows cmd have problems if it start in a unc path!@beermanWhat is the meaning of you answer... Why should someone add .unc as executable extension?Maybe you should read what unc is: HERE. Share this post Link to post Share on other sites
Somerset 3,040 Posted June 23, 2004 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.. Spoiler Share this post Link to post Share on other sites