Windows Batch File?
Results 1 to 4 of 4

Thread: Windows Batch File?

  1. #1
    Registered User CompuDocs's Avatar
    Join Date
    Mar 1999
    Location
    Loves Park, Illinois USA
    Posts
    323

    Post Windows Batch File?

    I am trying to find a way to automatically:

    a)Remove the swap file
    b)Restart in safe mode
    c)Scan and defrag the hard drive(s)
    d)Create a swap file
    e)Restart in normal mode

    Is there a program that can do this?

    Charlie
    "Oh Bother," said Pooh, as Windows crashed for the umpteenth time.

  2. #2
    Chat Operator Matridom's Avatar
    Join Date
    Jan 2002
    Location
    Ontario, Canada
    Posts
    3,778

    Post

    [quote]Originally posted by CompuDocs:
    <strong>I am trying to find a way to automatically:

    a)Remove the swap file
    b)Restart in safe mode
    c)Scan and defrag the hard drive(s)
    d)Create a swap file
    e)Restart in normal mode

    Is there a program that can do this?

    Charlie</strong><hr></blockquote>


    one batch file will not do that.. windows2k and xp will allow scripting.. under 98, just schedual a task to do it. as for booting in safe mode to do this.. why?
    <Ferrit> Take 1 live chicken, cut the head off, dance around doing the hokey pokey and chanting: GO AWAY BAD VIRUS, GO AWAY BAD VIRUS
    -----------------------
    Windows 7 Pro x64
    Asus P5QL Deluxe
    Intel Q6600
    nVidia 8800 GTS 320
    6 gigs of Ram
    2x60 gig OCZ Vertex SSD (raid 0)
    WD Black 750 gig
    Antec Tri power 750 Watt PSU
    Lots of fans

  3. #3
    Registered User CompuDocs's Avatar
    Join Date
    Mar 1999
    Location
    Loves Park, Illinois USA
    Posts
    323

    Post

    Thanks for replying.

    Booting into safe mode to run the defrag without the virtual memory (swap file). Normal mode on most machines without the VM causes too many problems if Windows gets up at all.

    Charlie
    "Oh Bother," said Pooh, as Windows crashed for the umpteenth time.

  4. #4
    Chat Operator Matridom's Avatar
    Join Date
    Jan 2002
    Location
    Ontario, Canada
    Posts
    3,778

    Post

    [quote]Originally posted by CompuDocs:
    <strong>Thanks for replying.

    Booting into safe mode to run the defrag without the virtual memory (swap file). Normal mode on most machines without the VM causes too many problems if Windows gets up at all.

    Charlie</strong><hr></blockquote>

    I'm not sure if there iss a command that will allow you to boot to safe mode. I know i can make a BOOT disk that will force a computer to boot into safe mode, i can also make this disk run scandisk (command level), but defraq won't be automated (all squedualed tasks are stoped when in safe mode)
    <Ferrit> Take 1 live chicken, cut the head off, dance around doing the hokey pokey and chanting: GO AWAY BAD VIRUS, GO AWAY BAD VIRUS
    -----------------------
    Windows 7 Pro x64
    Asus P5QL Deluxe
    Intel Q6600
    nVidia 8800 GTS 320
    6 gigs of Ram
    2x60 gig OCZ Vertex SSD (raid 0)
    WD Black 750 gig
    Antec Tri power 750 Watt PSU
    Lots of fans

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •