Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-10-2007, 11:30 AM   #1
Member (7 bit)
 
oxfordbrent's Avatar
 
Join Date: Jul 2004
Location: north central Florida
Posts: 64
using notepad to defrag question

I set up a batch file in notepad to defrag my computer and then used the task scheduler to make it automatic as I read this on one of the PC Mech daily tips. Is it suppose to look like this when defragging? I read that this is suppose to work for XP, which is what I have, but the hard drive doesn't make any sounds, so I think this means it is hanging up and not actually defragging. It just scrolls continuously as shown below in the command prompt:
Quote:
C:\Documents and Settings\Owner\Desktop\Computer Security Programs>defrag c:

C:\Documents and Settings\Owner\Desktop\Computer Security Programs>defrag c:

C:\Documents and Settings\Owner\Desktop\Computer Security Programs>defrag c:

C:\Documents and Settings\Owner\Desktop\Computer Security Programs>defrag c:
I set it up to do more than one drive in notepad with the following batch file and saved it as defrag.bat:
Quote:
defrag c:
defrag d:
defrag g:
I'm not very familiar with batch files. Any suggestions on what I can try to get this to work properly would be appreciated.
oxfordbrent is offline   Reply With Quote
Old 02-12-2007, 08:17 AM   #2
Member (7 bit)
 
oxfordbrent's Avatar
 
Join Date: Jul 2004
Location: north central Florida
Posts: 64
Well it seems to be working now. I'm not sure why. I had made a few adjusments to my computer before I had the scheduled defrag task fully set up because I ran into a few other problems before the one I asked about above. When I first set up the task, I received a 0x80070005 error. Microsoft has a hotfix for this that I used, but did not correct this problem. I was still getting the error after the hotfix so I did more research and found out that a password needs to be set up for the owner/administrator for the task scheduler to work properly. I had never set one up, so I went in an did this. This took care of the problem of the task scheduler not working properly. After this, the task scheduler did run, but the batch file ran with the scrolling lines I described in my first post. I restarted the computer since then and now the batch file seems to be working because it shows that it analizes the disk first and then defrags on the dos screen. I guess I just needed to restart after the changes I made for it to work properly?? My next question about this is: Does this form of defrag work as well as running the Disk Keeper Lite program. I analized my main drive using the Disk Keeper Lite program later on and it showed that it was slightly fragmented. Do all hard drives stay slightly fragmented after a lot of use even after defragmenting?
oxfordbrent is offline   Reply With Quote
Old 02-12-2007, 08:45 AM   #3
glc
Forum Administrator
Staff
Premium Member
 
glc's Avatar
 
Join Date: May 2000
Location: Joplin MO
Posts: 37,786
I use Diskeeper Pro and use the set it and forget it option. It defrags in the background when it determines it's needed. This is usually daily on this machine. The defrag only takes a couple of minutes.
glc is online now   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Defrag - How long sounds resonable for a time estimate? (97% fragmented, 6+ days) i3lueHorneT Computer Hardware 3 04-27-2006 04:18 PM
When I go to defrag it says I need to run scan disk first. Help!! SpikiestDog2 Software Discussion & Support 4 10-22-2005 12:40 PM
Lost MS defrag program artzelda Windows Legacy Support (XP and earlier) 4 07-22-2005 05:40 AM
Scandisk And Defrag Question SRom2112 Windows Legacy Support (XP and earlier) 2 01-28-2004 06:52 PM
Defrag question juppy Windows Legacy Support (XP and earlier) 9 02-03-2003 07:46 PM


All times are GMT -5. The time now is 11:10 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2