Home All Groups Group Topic Archive Search About

Can I write this program?

Author
27 Nov 2007 1:11 AM
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

Author
27 Nov 2007 1:50 AM
Tom Shelton
On Nov 26, 6:11 pm, Tony Girgenti <tony(nospam)@lakesideos.com> wrote:
> 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....

--
Tom Shelton
Author
27 Nov 2007 2:27 AM
Brian Gideon
On Nov 26, 7:50 pm, Tom Shelton <tom_shel***@comcast.net> wrote:
Show quoteHide quote
> On Nov 26, 6:11 pm, Tony Girgenti <tony(nospam)@lakesideos.com> wrote:
>
> > 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....
>
> --
> Tom Shelton

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 :)
Author
27 Nov 2007 4:03 AM
Michael D. Ober
Show quote Hide quote
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
news:26D15676-FDF8-4494-9D96-FDEF138440A1@microsoft.com...
> 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.
Author
27 Nov 2007 4:05 PM
Tony Girgenti
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

Show quoteHide quote
"Michael D. Ober" wrote:

> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
> news:26D15676-FDF8-4494-9D96-FDEF138440A1@microsoft.com...
> > 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.
>
>
>
Author
28 Nov 2007 3:16 AM
Michael D. Ober
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
news:7305DAD3-2C81-4C0D-8AED-E0D90E147546@microsoft.com...
> 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.

Show quoteHide quote
> Thanks,
> Tony
>
> "Michael D. Ober" wrote:
>
>> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
>> news:26D15676-FDF8-4494-9D96-FDEF138440A1@microsoft.com...
>> > 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.
>>
Author
28 Nov 2007 2:00 PM
Tony Girgenti
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

Show quoteHide quote
"Michael D. Ober" wrote:

> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
> news:7305DAD3-2C81-4C0D-8AED-E0D90E147546@microsoft.com...
> > 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.
>
> > Thanks,
> > Tony
> >
> > "Michael D. Ober" wrote:
> >
> >> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
> >> news:26D15676-FDF8-4494-9D96-FDEF138440A1@microsoft.com...
> >> > 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.
> >>
>
>
>
Author
29 Nov 2007 1:07 AM
Michael D. Ober
"Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
news:9F601CA9-1632-4AE3-8CDB-AEFFCD700718@microsoft.com...
> 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.

Show quoteHide quote
> Thanks,
> Tony
>
> "Michael D. Ober" wrote:
>
>> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
>> news:7305DAD3-2C81-4C0D-8AED-E0D90E147546@microsoft.com...
>> > 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.
>>
>> > Thanks,
>> > Tony
>> >
>> > "Michael D. Ober" wrote:
>> >
>> >> "Tony Girgenti" <tony(nospam)@lakesideos.com> wrote in message
>> >> news:26D15676-FDF8-4494-9D96-FDEF138440A1@microsoft.com...
>> >> > 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.
>> >>
Author
27 Nov 2007 1:28 PM
andyjgw
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...

On 27 Nov, 01:11, Tony Girgenti <tony(nospam)@lakesideos.com> wrote:
Show quoteHide quote
> 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
Author
27 Nov 2007 3:55 PM
Tony Girgenti
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

Show quoteHide quote
"andyjgw" wrote:

> 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...
>
> On 27 Nov, 01:11, Tony Girgenti <tony(nospam)@lakesideos.com> wrote:
> > 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
>
>