Jump to content

Chr (34) using


Recommended Posts

Maybe this?

RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe /REMSILENT / PASSWORD =" & '"' & "12340000" & '"'), "", @SW_HIDE)

Chimaera

Or maybe this

$pass = /PASSWORD ='"' & "12340000" & '"'
RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & $pass), "", @SW_HIDE)

Or maybe this lol

$pass = '"' & "12340000" & '"'
RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & "/PASSWORD =" & $pass), "", @SW_HIDE)
Edited by Chimaera
Link to comment
Share on other sites

$pass = '"' & "12340000" & '"'
ConsoleWrite( $pass)
$test = RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & "/PASSWORD =" & $pass, "", @SW_HIDE)
ConsoleWrite( $test)

run that and see what messages you get in the console window

Password is correct like this as well

$pass = '"12340000"'
Edited by Chimaera
Link to comment
Share on other sites

Try this:

$sPassword = 123456
RunWait(@ProgramFilesDir & '\Avira\Antivir Desktop\setup.exe /REMSILENT /PASSWORD ="' & $sPassword & '"', "", @SW_HIDE)

As i understand it m8 he wants the " as part of the password

ie. pass = "123456"

Link to comment
Share on other sites

I can't tell what format has to be after /PASSWORD= , If there were '"' in the password, Resul should told us. Otherwise we can give a try to the crystal ball.

Link to comment
Share on other sites

i assumed they were part of the pass from this

PASSWORD =" & chr(34) & "12340000" & chr(34

being as chr(34) = "

But then im known to be wrong lol

Link to comment
Share on other sites

i assumed they were part of the pass from this

PASSWORD =" & chr(34) & "12340000" & chr(34

being as chr(34) = "

But then im known to be wrong lol

That doesn't make sense to me, but the usual way to include a quotation mark as part of the text is to write it twice so you would need

PASSWORD = """12340000"""

that is 3 sets of chr(34) at the start and another 3 at the end.

But it could be that quotation marks as part of the password simply won't work.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...