cowsmanaut Posted September 25, 2004 Share Posted September 25, 2004 run ( @comspec & "c:\au3_tool\psexec \\digi"& $digi &" -i c:\au3_test\caphost.exe") I run this and I have the Digi value defined.. I already have a file copy command that uses this same set up and works.. FileCopy("C:\au3_tool\command.ini", "\\digi" & $digi & "\c$\au3_test\*.*") however when I try to run the psexec it tells me the file does not exist... Am I missing something?? Link to comment Share on other sites More sharing options...
nobby Posted September 25, 2004 Share Posted September 25, 2004 What's in your variable. try RunWait(@ComSpec & " /c " & 'c:\au3_tool\psexec \\digi" & $digi &" -i c:\au3_test\caphost.exe', "") CheersNobby Link to comment Share on other sites More sharing options...
cowsmanaut Posted September 29, 2004 Author Share Posted September 29, 2004 the variable is the number of the computer. we have a network with comeputer names that range from digi01-digi21 so the variable contains 01-21 moo Link to comment Share on other sites More sharing options...
normeus Posted September 29, 2004 Share Posted September 29, 2004 add the exteension to your program (.exe or .bat etc) to test script use a " /k " instead of " /c " sample: Runwait ( @ComSpec & " /k " & '"C:\Program Files\ParseRat\parserat.exe "') notice the use of '"'" ( single quotes around double quotes because of the spaces in the folder name) if you are running a windows program you dont need @comspect and some dos programs run fine without it http://www.autoitscript.com/autoit3/scite/...iTe4AutoIt3.exe Link to comment Share on other sites More sharing options...
ZeDMIN Posted September 29, 2004 Share Posted September 29, 2004 run ( @comspec & "c:\au3_tool\psexec \\digi"& $digi &" -i c:\au3_test\caphost.exe")I run this and I have the Digi value defined.. I already have a file copy command that uses this same set up and works..FileCopy("C:\au3_tool\command.ini", "\\digi" & $digi & "\c$\au3_test\*.*")however when I try to run the psexec it tells me the file does not exist... Am I missing something??<{POST_SNAPBACK}>Either use:run("c:\au3_tool\psexec.exe \\digi" & $digi & " -i c:\au3_test\caphost.exe")or:run(@comspec & " /c c:\au3_tool\psexec.exe \\digi" & $digi & " -i c:\au3_test\caphost.exe")Should both work.Greetings, ZeD Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now