• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2244
  • Last Modified:

Can I safely stop sdelete before it's finished clearing free space?

I want to regularly use the Winternals free tool sdelete to safely clear out free space on two computers, one running Windows 98SE and the other running Windows XP.  Run from the C root directory, I think the correct command would be:
 “sdelete –p 3 –s –q –z c:”
Is this correct?
Also, say that I want to stop sdelete before it's complete.  Is there any way to do this?  I tried hitting ESC a few times with no luck.  Is there any danger just closing the window or closing it out of the task list?
Thanks,
Al
0
alanlsilverman
Asked:
alanlsilverman
  • 3
  • 2
1 Solution
 
Mohammed HamadaSenior IT ConsultantCommented:
Have you tried CTRL + C to abort deleting ????
0
 
Mohammed HamadaSenior IT ConsultantCommented:
Or you can use it in a batch file and put a pause command in the batch file that waits you to press any key to proceed with the process..
0
 
alanlsilvermanAuthor Commented:
How would I go about setting up a batch file to start this command?  And could I schedule it to start it at a certain time?
Raising point total to 300.
Thanks,
Al
0
 
Mohammed HamadaSenior IT ConsultantCommented:
for win98 you can use System agent, See the following link to it..!
http://www.faqs.org/faqs/windows/win95/faq/part13/section-2.html

for winxp you can use the following command

:START
REM Execute the Sdelete command ever 20 seconds.
Sdelete
SLEEP 20
GOTO END

First let's start with your first question....!

To run a batch file in a command, you will need to create a batch file including the excact order/command that you want to do..

Then you will need to copy the sdelete command in windows\system32 directory so the command can be easy accessed from any path on the command prompt, or you can add the directory of the sdelete file to the path= command.
to do so,
type in the command prompt,
PATH and enter
Something like the following will appear
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\


You will need to copy this path to your path and add the directory after the Support Tools\ directory.

I'm not sure for what purpose you will use this command as it's new one to me, But you can add the above command to schedule time using the sleep command.

Or you can use the Scheduled Tasks program, To run this program follow the below steps.

1. Click Start
2. Click Programs
3. Click Accessories, System Tools, and then Scheduled Tasks.

Once open you'll be able to create your own custom task by clicking Add Scheduled Task which will start you through the wizard prompting you with what program you wish to execute, how often you wish to run it (daily, weekly, monthly, one time only, when my computer starts, and when I log on), the time you wish to run, and how often each day to run.

BTW: the scheduled tasks program applies for all OS/ win98, 2000 and winXP.

Hope this helps.
0
 
alanlsilvermanAuthor Commented:
Everything you've said helps greatly.  
Thank you,
Al
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now