Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

defrag keeps restarting

Posted on 1998-10-13
6
Medium Priority
?
200 Views
Last Modified: 2013-12-28
See above title.
What more can  I say. Every time I use defrag it restarts about twenty times before I get fed up and give up
0
Comment
Question by:dogberry
6 Comments
 
LVL 14

Expert Comment

by:smeebud
ID: 1646198
Try one of these stitches;
You can use the following command-line parameters with Defrag.exe, either on the Open line in the Run dialog box or within
System Agent:

/ALL               Defragment all local, non-removable drives.

/F                   Defragment files and free space.

/U                   Defragment files only.

/Q                   Defragment free space only.

/P                    System and hidden files will be optimized.

/CONCISE       Display the Hide Details view (Default).

/DETAILED     Display the Show Details view.

/NOPROMPT   Unattended mode; do not stop and display confirmation messages.

/PMIOCTL      Turns off use of the protected-mode IOCTL from Drvspacx.vxd.

/SAGESET:n     Display the System Agent-Aware Setting dialog box and store the settings in the SETn registry key.

/SAGERUN:n    Runs in unattended mode using the System Agent-aware settings in the SETn registry key.

Note, If this answer does not work, either reject it or comment back.
We're here to solve your problem and will gladly work with you until you are satisfied.
It's your page.
Please don't accept or grade until you problem is solved as that will lock out other techs.
You're under no time limit or restrictions.

Regards
Bud
http://www.geocities.com/~budallen/
0
 
LVL 7

Expert Comment

by:MATTCEI
ID: 1646199
It will do this if it senses that the contents of the hard drive have changed while it's running,usually caused by another program running at the same time as Defrag.Before starting it,bring up the Task List (CTL-ALT-DEL once) and 'END' all but Explorer.
0
 

Author Comment

by:dogberry
ID: 1646200
sorry but smeebud gave me the answer. Yours may work as well but his was simpler for a relative novice like me
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 14

Accepted Solution

by:
smeebud earned 100 total points
ID: 1646201
godberry, you said this worked so I'll repost it.
=============

You can use the following command-line parameters with Defrag.exe, either on the Open line in the Run dialog box or
within
System Agent:

/ALL               Defragment all local, non-removable drives.

/F                   Defragment files and free space.

/U                   Defragment files only.

/Q                   Defragment free space only.

/P                    System and hidden files will be optimized.

/CONCISE       Display the Hide Details view (Default).

/DETAILED     Display the Show Details view.

/NOPROMPT   Unattended mode; do not stop and display confirmation messages.

/PMIOCTL      Turns off use of the protected-mode IOCTL from Drvspacx.vxd.

/SAGESET:n     Display the System Agent-Aware Setting dialog box and store the settings in the SETn registry key.

/SAGERUN:n    Runs in unattended mode using the System Agent-aware settings in the SETn registry key.

Regards
Bud
http://www.geocities.com/~budallen/
0
 

Author Comment

by:dogberry
ID: 1646202
Smeebud, which one of your suggested parameters will stop it restarting all the time. I have tried the other suggestion of shutting all but explorer and that doesn't work. Any other ideas
0
 

Expert Comment

by:piyi
ID: 1646203
Stop task scheduler agent,no screen saver selected
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

971 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