Jump to content
Sign in to follow this  
PsychOfMSE1

Help with syntax, please?

Recommended Posts

PsychOfMSE1

RunAs($sAdminUser, $sdomain, $sAdminPassword, 0, @ComSpec & " /c " & 'REG ADD & ' $KEY_x64 ' & /v & ' $VALUE ' & /t & ' $TYPE ' & /d & ' $DATA ' & /f"', "", @SW_HIDE)

I keep getting a syntax error, and quotes in autoit are the bane of my existence.  Can anyone help me out with what I might be doing wrong?

Thank you so much!

Share this post


Link to post
Share on other sites
JLogan3o13

Try this. If it does not work, please provide the values of your vars.

RunAs($sAdminUser, $sdomain, $sAdminPassword, 0, @ComSpec & ' /c ' & 'REG ADD "' &  $KEY_x64 & '" /v'  & $VALUE & ' /t' & $TYPE & ' /d' & $DATA & ' /f', "", @SW_HIDE)

√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

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  

×