Jump to content
Sign in to follow this  
Mistake

problem whit ""

Recommended Posts

Mistake

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?

Share this post


Link to post
Share on other sites
PsaltyDS

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.

:mellow:


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

Share this post


Link to post
Share on other sites
Mistake

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.

:mellow:

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.