Computing.Net > Forums > Windows XP > Defragmenting Using Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Defragmenting Using Batch File

Reply to Message Icon

Name: Dazza2005
Date: June 15, 2005 at 11:22:34 Pacific
OS: Windows XP
CPU/Ram: 512
Comment:

Does anyone know of a way to defragment an XP machine using a batch file with an 'AT' command? So to create a scheduled task on any PC in which it is run.

And also to allow this script to run successfully even with a restricted user logged on?

Any assistance greatly appreciated.

Regards,

Darren King



Sponsored Link
Ads by Google

Response Number 1
Name: Professional
Date: June 15, 2005 at 11:48:39 Pacific
Reply:

Doesn't seem practical. Defrag while someone is using the pc will have it restart over and over again.. You'll just frustrate the user trying to use the pc.


0

Response Number 2
Name: seawatch
Date: June 15, 2005 at 13:36:27 Pacific
Reply:

If you don't mind spending the money, DiskKeeper is a great program and will run in the back gorund. Once it's done a defrag a few times, you won't notice it hardly at all unless you're doing really intense disk/processor type work.

Not cheap, but good.

Larry


0

Response Number 3
Name: Lijiman
Date: June 15, 2005 at 14:27:27 Pacific
Reply:

I know a way without using a batch file. I have a scheduled task for both of my partitioned drives.

Make a scheduled task that runs defrag.exe and when you get to the screen that has the "Run:" box and the path "C:\WINDOWS\system32\defrag.exe" add a space, then the drive letter to be defragged and a colon...it should look like this...
"Run: C:\WINDOWS\system32\defrag.exe C:" or
"Run: C:\WINDOWS\system32\defrag.exe E:" depending on the drive letter.

Email me if you have any questions.

AMD Athlon 64 3500+ socket 939
1 GIG PC3200 DDR RAM
2x120 GIG 7200PRM HD's SATA/RAID 0
PNY Nvidia 6800 128MB
Lite-On DVD+-RW DL


0

Response Number 4
Name: XpUser
Date: June 15, 2005 at 14:34:33 Pacific

Response Number 5
Name: XpUser
Date: June 15, 2005 at 14:43:02 Pacific
Reply:

Just to complement the above...

Description of the New Command Line Defrag.exe Included with Windows XP

i_XpUser


0

Related Posts

See More



Response Number 6
Name: Rich Mentzel
Date: June 15, 2005 at 15:48:32 Pacific
Reply:

Diskeeper Pro 9.0 can be had all over ebay for $29.99 with a cd yet, and it does run in the background and really quietly defrag all the time...this program is so far superior to Windows defrag....


0

Response Number 7
Name: XpUser
Date: June 15, 2005 at 16:09:34 Pacific
Reply:

this program is so far superior to Windows defrag

Well Windows XP defragger is made by the very same company that sells Diskeeper.

i_XpUser


0

Response Number 8
Name: Rich Mentzel
Date: June 15, 2005 at 16:55:14 Pacific
Reply:

"Well Windows XP defragger is made by the very same company that sells Diskeeper."
Yes that's right XP User, but that is a stripped down version in XP with none of the features of the full program, as I am sure you know!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Defragmenting Using Batch File

Using BATCH file to backup data www.computing.net/answers/windows-xp/using-batch-file-to-backup-data/66927.html

Choose a Directory Using Batch File www.computing.net/answers/windows-xp/choose-a-directory-using-batch-file/156129.html

Find and Replace using Batch File www.computing.net/answers/windows-xp/find-and-replace-using-batch-file/178634.html