Mistake Posted November 3, 2008 Share Posted November 3, 2008 i have made this code: Local $process=RunAsWait($userName,$domain,$password,1,'\\10.80.198.3\share\setup /v" SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1 /qn"',@SystemDir) ProcessWaitClose($process) but the code in the '" "' doesn't be executed. why? Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 3, 2008 Share Posted November 3, 2008 i have made this code: Local $process=RunAsWait($userName,$domain,$password,1,'\\10.80.198.3\share\setup /v" SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1 /qn"',@SystemDir) ProcessWaitClose($process) but the code in the '" "' doesn't be executed. why? How about: Local $process=RunAsWait($userName,$domain,$password,1,'\\10.80.198.3\share\setup /v "SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1" /qn',@SystemDir) Assumes all the stuff inside the "" belongs to the /v switch, and then /qn is a separate switch. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Mistake Posted November 3, 2008 Author Share Posted November 3, 2008 How about: Local $process=RunAsWait($userName,$domain,$password,1,'\\10.80.198.3\share\setup /v "SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1" /qn',@SystemDir) Assumes all the stuff inside the "" belongs to the /v switch, and then /qn is a separate switch. no beacause "SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1 /qn" is 1 command...if i excute the command separate work.... the all code is: $userName = "gfdgfg" $domain = "dsadsadsaf" $password = "dsadsadsad" If FileExists("C:\Programmi\Microsoft Firewall Client 2004\") Then Exit Else Local $process=RunAsWait($userName,$domain,$password,1,'\\10.80.198.3\share\setup /v" SERVER_NAME_OR_IP=entarray.ministero.comunicazioni.priv ENABLE_AUTO_DETECT=0 REFRESH_WEB_PROXY=1 /qn"',@SystemDir) ProcessWaitClose($process) Local $msg=MsgBox(4,"Installazione Firewall Client ISA","L'installazione di ISA server 2006 è terminata, è consigliabile riavviare il computer. Vuoi Riavviare ora?") If $msg==4 Then Shutdown(6) EndIf EndIf Link to comment Share on other sites More sharing options...
PsaltyDS Posted November 3, 2008 Share Posted November 3, 2008 Post the exact full command line that works if you run it from the DOS prompt. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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