Can I write this program?

  • Thread starter Thread starter Tony Girgenti
  • Start date Start date
T

Tony Girgenti

Hello.

Can i write a completely automatic program that will restart my computer in
safe mode, delete all the files i want to delete, defrag the hard drive and
restart again into normal mode in vb.net using vs2005 pro?

Or am i asking for something redicilously stupid?

Any replies would be gratefully appreciated.

Thanks,
Tony
 
Hello.

Can i write a completely automatic program that will restart my computer in
safe mode, delete all the files i want to delete, defrag the hard drive and
restart again into normal mode in vb.net using vs2005 pro?

Or am i asking for something redicilously stupid?

Any replies would be gratefully appreciated.

Thanks,
Tony

The only part I'm not sure you can do is to boot into safemode....
 
The only part I'm not sure you can do is to boot into safemode....

Well, you could always modify the boot.ini file and then issue a
reboot. So I guess between the two of us we could figure it out :)
 
Tony Girgenti said:
Hello.

Can i write a completely automatic program that will restart my computer
in
safe mode, delete all the files i want to delete, defrag the hard drive
and
restart again into normal mode in vb.net using vs2005 pro?

Or am i asking for something redicilously stupid?

Any replies would be gratefully appreciated.

Thanks,
Tony


Using only Windows tools, no - you can't run the built in defragger in safe
mode - I've tried. You may be able to if you use a third party defragger.

Mike Ober.
 
If your problem is really that you can't defrag properly (ie, it keeps
restarting), then how about you consider another defragmenter that
doesn't get caught out like that ? Try "Perfect Disk" for example, or
Diskeeper if that's still around.

If using NTFS, typically it tends to take more to upset it rather than
FAT for example...
 
Hello andyjgw.

I'm not really having a problem defragging. In fact, i can perform all of
the steps that i want to do manually without a problem. I'm just trying to
find out if i can automate the whole process.

Thanks,
Tony
 
Hello Michael.

Thanks to you and everybody for their replies.

I'm not sure of what you mean by "you can't run the built in defragger in
safe
mode". What is the built in defragger? Is that different than using
Start\All Programs\Accessories\System Tools\Disk Defragmenter?

Thanks,
Tony
 
Tony Girgenti said:
Hello Michael.

Thanks to you and everybody for their replies.

I'm not sure of what you mean by "you can't run the built in defragger in
safe
mode". What is the built in defragger? Is that different than using
Start\All Programs\Accessories\System Tools\Disk Defragmenter?

Yes. On most systems, the drivers required to run the disk defragmenter
that comes with Windows aren't started in Safe Mode. I don't know why,
however, since the Defrag API is actually in kernel386.exe (or it's
equivalent), which is always loaded.

Mike.
 
Michael.

I have never had a problem running defrag in safe mode. I have run it on
numerous systems without a problem.

If you can't run defrag in safe mode, are you sure it's not just a problem
with your system?

Thanks,
Tony
 
Tony Girgenti said:
Michael.

I have never had a problem running defrag in safe mode. I have run it on
numerous systems without a problem.

If you can't run defrag in safe mode, are you sure it's not just a problem
with your system?

Multiple systems, multiple fresh builds.

Mike.
 
Back
Top