Can I write this program?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?=

    #1

    Can I write this program?

    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
  • Tom Shelton

    #2
    Re: Can I write this program?

    On Nov 26, 6:11 pm, Tony Girgenti <tony(nospam)@l akesideos.comwr ote:
    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

    Comment

    • Brian Gideon

      #3
      Re: Can I write this program?

      On Nov 26, 7:50 pm, Tom Shelton <tom_shel...@co mcast.netwrote:
      On Nov 26, 6:11 pm, Tony Girgenti <tony(nospam)@l akesideos.comwr ote:
      >
      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 :)

      Comment

      • Michael D. Ober

        #4
        Re: Can I write this program?

        "Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
        news:26D15676-FDF8-4494-9D96-FDEF138440A1@mi crosoft.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.


        Comment

        • andyjgw

          #5
          Re: Can I write this program?

          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)@l akesideos.comwr ote:
          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

          Comment

          • =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?=

            #6
            Re: Can I write this program?

            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

            "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)@l akesideos.comwr ote:
            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
            >
            >

            Comment

            • =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?=

              #7
              Re: Can I write this program?

              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\Access ories\System Tools\Disk Defragmenter?

              Thanks,
              Tony

              "Michael D. Ober" wrote:
              "Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
              news:26D15676-FDF8-4494-9D96-FDEF138440A1@mi crosoft.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.
              >
              >
              >

              Comment

              • Michael D. Ober

                #8
                Re: Can I write this program?

                "Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
                news:7305DAD3-2C81-4C0D-8AED-E0D90E147546@mi crosoft.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\Access ories\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)@l akesideos.comwr ote in message
                >news:26D1567 6-FDF8-4494-9D96-FDEF138440A1@mi crosoft.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.
                >>

                Comment

                • =?Utf-8?B?VG9ueSBHaXJnZW50aQ==?=

                  #9
                  Re: Can I write this program?

                  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

                  "Michael D. Ober" wrote:
                  "Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
                  news:7305DAD3-2C81-4C0D-8AED-E0D90E147546@mi crosoft.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\Access ories\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)@l akesideos.comwr ote in message
                  news:26D15676-FDF8-4494-9D96-FDEF138440A1@mi crosoft.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.
                  >
                  >
                  >
                  >

                  Comment

                  • Michael D. Ober

                    #10
                    Re: Can I write this program?

                    "Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
                    news:9F601CA9-1632-4AE3-8CDB-AEFFCD700718@mi crosoft.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.
                    Thanks,
                    Tony
                    >
                    "Michael D. Ober" wrote:
                    >
                    >"Tony Girgenti" <tony(nospam)@l akesideos.comwr ote in message
                    >news:7305DAD 3-2C81-4C0D-8AED-E0D90E147546@mi crosoft.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\Access ories\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)@l akesideos.comwr ote in message
                    >news:26D1567 6-FDF8-4494-9D96-FDEF138440A1@mi crosoft.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.
                    >>

                    Comment

                    Working...