Cannot with CL delete directory contents but not directory
Moderators: Eraser DevTeam, Eraser Moderators
5 posts
• Page 1 of 1
Cannot with CL delete directory contents but not directory
I am trying out the command line interface with eraser.exe 6.0.10.2620. I previously used eraserl.exe, but understand that the preferred method is to use eraser.exe with command line options. I have therefore tried the following:
"C:\Program Files\Eraser\Eraser.exe" addtask --quiet --method=b1bfab4a-31d3-43a5-914c-e9892c78afd8 --schedule=now --dir="Z:\Temp"
You will note that for the directory named, I am not specifying delete as an option.
As I interpret the help file, this means that directory "Z:\Temp" should be emptied but not itself deleted.
However, "Z:\Temp" IS deleted.
This may be a bug, or is there is an explicit way to say "do not delete the directory itself"?
Any suggestions?
Thank you,
Engelbert
"C:\Program Files\Eraser\Eraser.exe" addtask --quiet --method=b1bfab4a-31d3-43a5-914c-e9892c78afd8 --schedule=now --dir="Z:\Temp"
You will note that for the directory named, I am not specifying delete as an option.
As I interpret the help file, this means that directory "Z:\Temp" should be emptied but not itself deleted.
However, "Z:\Temp" IS deleted.
This may be a bug, or is there is an explicit way to say "do not delete the directory itself"?
Any suggestions?
Thank you,
Engelbert
- Engelbert
- Posts: 5
- Joined: Fri Dec 28, 2007 12:46 am
Re: Cannot with CL delete directory contents but not directo
Ah: I'm assuming you're referring to the eraser help command?
The Eraser 6.0 command line was not meant for public use, but people always like pushing software to the limits, so... I've fixed this in r2792.
The Eraser 6.0 command line was not meant for public use, but people always like pushing software to the limits, so... I've fixed this in r2792.
Be sure to read the FAQ before posting. If you found this application useful, please contribute to Eraser's development.
I develop Eraser but I am not an employee of Heidi Computers Ltd. My views do not represent those of Heidi Computers Ltd.
Don't PM or Email me questions: they won't be answered any faster than on the forum and knowledge won't be accessible by all.
I develop Eraser but I am not an employee of Heidi Computers Ltd. My views do not represent those of Heidi Computers Ltd.
Don't PM or Email me questions: they won't be answered any faster than on the forum and knowledge won't be accessible by all.
-

Joel - Eraser DevTeam
- Posts: 3688
- Joined: Sat Aug 19, 2006 12:16 am
- Location: Singapore
Re: Cannot with CL delete directory contents but not directo
Thank you Joel.
In my setup, I always invoke Eraser in an automated script which has multiple command lines rather than using the GUI version. Thus my addiction to EraserL.exe in previous versions and desire to use the new Eraser.exe CL options. However, I have found version 6.0.10.2620 problematic in several ways, so have reluctantly reverted to 5.8.7.
Thank you again for your worthy efforts.
In my setup, I always invoke Eraser in an automated script which has multiple command lines rather than using the GUI version. Thus my addiction to EraserL.exe in previous versions and desire to use the new Eraser.exe CL options. However, I have found version 6.0.10.2620 problematic in several ways, so have reluctantly reverted to 5.8.7.
Thank you again for your worthy efforts.
- Engelbert
- Posts: 5
- Joined: Fri Dec 28, 2007 12:46 am
Re: Cannot with CL delete directory contents but not directo
Yes, The command line in 6.0 does not allow you to run a task, only add a task. You can add multiple targets, but over the command line it is rather clumsy.
You can try 6.2 if you want command line support; it is more complete there but I think there are probably still a few kinks to work out.
You can try 6.2 if you want command line support; it is more complete there but I think there are probably still a few kinks to work out.
Be sure to read the FAQ before posting. If you found this application useful, please contribute to Eraser's development.
I develop Eraser but I am not an employee of Heidi Computers Ltd. My views do not represent those of Heidi Computers Ltd.
Don't PM or Email me questions: they won't be answered any faster than on the forum and knowledge won't be accessible by all.
I develop Eraser but I am not an employee of Heidi Computers Ltd. My views do not represent those of Heidi Computers Ltd.
Don't PM or Email me questions: they won't be answered any faster than on the forum and knowledge won't be accessible by all.
-

Joel - Eraser DevTeam
- Posts: 3688
- Joined: Sat Aug 19, 2006 12:16 am
- Location: Singapore
Re: Cannot with CL delete directory contents but not directo
Thank you, I appreciate your response and suggestion.
- Engelbert
- Posts: 5
- Joined: Fri Dec 28, 2007 12:46 am
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests

