pintas Posted August 15, 2008 Share Posted August 15, 2008 Hi, I've been trying to use a command line to use eraserl with autoit but i can't. My idea was to copy eraserl.exe and eraser.dll to %AppData% and delete a folder called experiment in %AppData%, and after that to delete the both eraserl.exe and eraser.dll. I've been using the following: FileCopy(@ScriptDir & "\Data\Eraserl.exe", @AppDataDir, 1) FileCopy(@ScriptDir & "\Data\Eraser.dll", @AppDataDir, 1) RunWait(@AppDataDir & '\Eraserl.exe -folder "%AppData%\experiment" -subfolders -method DoD_E -results -resultsonerror') If FileExists(@AppDataDir & "\Eraserl.exe") Then FileDelete(@AppDataDir & "\Eraserl.exe") If FileExists(@AppDataDir & "\Eraser.dll") Then FileDelete(@AppDataDir & "\Eraser.dll") But i'm getting a "There's nothing to erase." error. This command line: Eraserl.exe -folder "%AppData%\experiment" -subfolders -method DoD_E -results -resultsonerror Works like a charm, but not in AutoIt. What am i doing wrong? Thanks. P.S.: I'm sorry i've posted this in another place but i couldn't edit it again to delete it... Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 15, 2008 Share Posted August 15, 2008 Hi, I've been trying to use a command line to use eraserl with autoit but i can't. My idea was to copy eraserl.exe and eraser.dll to %AppData% and delete a folder called experiment in %AppData%, and after that to delete the both eraserl.exe and eraser.dll. I've been using the following: FileCopy(@ScriptDir & "\Data\Eraserl.exe", @AppDataDir, 1) FileCopy(@ScriptDir & "\Data\Eraser.dll", @AppDataDir, 1) RunWait(@AppDataDir & '\Eraserl.exe -folder "%AppData%\experiment" -subfolders -method DoD_E -results -resultsonerror') If FileExists(@AppDataDir & "\Eraserl.exe") Then FileDelete(@AppDataDir & "\Eraserl.exe") If FileExists(@AppDataDir & "\Eraser.dll") Then FileDelete(@AppDataDir & "\Eraser.dll") But i'm getting a "There's nothing to erase." error. This command line: Eraserl.exe -folder "%AppData%\experiment" -subfolders -method DoD_E -results -resultsonerror Works like a charm, but not in AutoIt. What am i doing wrong? Thanks. P.S.: I'm sorry i've posted this in another place but i couldn't edit it again to delete it... Try FileCopy(@ScriptDir & "\Data\Eraserl.exe", @AppDataDir, 1) FileCopy(@ScriptDir & "\Data\Eraser.dll", @AppDataDir, 1) RunWait(@AppDataDir & "\Eraserl.exe -folder " & @AppDataDir & "\experiment -subfolders -method DoD_E -results -resultsonerror") If FileExists(@AppDataDir & "\Eraserl.exe") Then FileDelete(@AppDataDir & "\Eraserl.exe") If FileExists(@AppDataDir & "\Eraser.dll") Then FileDelete(@AppDataDir & "\Eraser.dll") Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
pintas Posted August 15, 2008 Author Share Posted August 15, 2008 Thanks for replying so fast I get a error saying " Unrecognized parameter 'and' " Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 15, 2008 Share Posted August 15, 2008 Try adding single quotes. Like this FileCopy(@ScriptDir & "\Data\Eraserl.exe", @AppDataDir, 1) FileCopy(@ScriptDir & "\Data\Eraser.dll", @AppDataDir, 1) RunWait(@AppDataDir & "\Eraserl.exe -folder '" & @AppDataDir & "\experiment' -subfolders -method DoD_E -results -resultsonerror") If FileExists(@AppDataDir & "\Eraserl.exe") Then FileDelete(@AppDataDir & "\Eraserl.exe") If FileExists(@AppDataDir & "\Eraser.dll") Then FileDelete(@AppDataDir & "\Eraser.dll") Also a little more info would help. Maybe the full error? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
pintas Posted August 15, 2008 Author Share Posted August 15, 2008 (edited) Get the same error.... This is the full error... (see attachment) The line in cmd is correct, but i cannot replicate it in autoit... Edited August 15, 2008 by pintas Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 15, 2008 Share Posted August 15, 2008 Ok I think I see what's wrong but maybe not. Try this. $options = "-folder '" & @AppDataDir & "\experiment' -subfolders -method DoD_E -results -resultsonerror" FileCopy(@ScriptDir & "\Data\Eraserl.exe", @AppDataDir, 1) FileCopy(@ScriptDir & "\Data\Eraser.dll", @AppDataDir, 1) RunWait(@AppDataDir & "\Eraserl.exe " & $options) If FileExists(@AppDataDir & "\Eraserl.exe") Then FileDelete(@AppDataDir & "\Eraserl.exe") If FileExists(@AppDataDir & "\Eraser.dll") Then FileDelete(@AppDataDir & "\Eraser.dll") If that works it was see the & in the code as an & in the sent data and not as just part of the script. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
pintas Posted August 15, 2008 Author Share Posted August 15, 2008 No, same thing It seems to input an unacepted 'and' command. Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 15, 2008 Share Posted August 15, 2008 Hey pintas, I sent you a PM about this. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
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