Jump to content

problem whit ""


Mistake
 Share

Recommended Posts

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

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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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