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

Posted on 2006-06-02
Last Modified: 2012-05-05
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?
Question by:alanlsilverman
    LVL 23

    Accepted Solution

    Have you tried CTRL + C to abort deleting ????
    LVL 23

    Expert Comment

    by:Mohammed Hamada
    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..

    Author Comment

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

    Expert Comment

    by:Mohammed Hamada
    for win98 you can use System agent, See the following link to it..!

    for winxp you can use the following command

    REM Execute the Sdelete command ever 20 seconds.
    SLEEP 20

    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.

    Author Comment

    Everything you've said helps greatly.  
    Thank you,

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
    Let’s list some of the technologies that enable smooth teleworking. 
    Video by: Tony
    This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.
    The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now