Scripting Scandisk/Defrag/anti-virus etc.

Discussion in 'Windows Desktop Systems' started by Steely, Apr 3, 2003.

  1. Steely

    Steely OSNN Addict

    Messages:
    71
    Location:
    Wolverhampton, United kingdom
    I want to setup the PC at home so that at say 1am - the PC is defragmented, 2am - scandisk + full surface scan, 3am - virus scan the PC, etc. It is possible to automate the whole process using a series of scripts?

    Thanks





    Dan
     
  2. powelly

    powelly Guest

    wont task schedualer do the job?
     
  3. GoNz0

    GoNz0 NTFS Stoner

    Messages:
    2,781
    Location:
    the year 2525
    the pay version of diskeeper 7 does smart schedule and it can also do it in the background when the pc is idle, very good program.
     
  4. zyfos

    zyfos Resurrected

    Messages:
    236
    Just use task scheduler. Just space em out far enough to make sure that one prog is completed before the next starts. (I think scan disk with full surface scan is gonna take more than an hour.)
     
  5. Steely

    Steely OSNN Addict

    Messages:
    71
    Location:
    Wolverhampton, United kingdom
    Thanks for your help guys. The only problem is how do you automate the scandisk process? For example, how do I get Scandisk process to start and close down when it's finished, same applies to disk defragmenting (although that we will addressed when I get my hands on a copy of Diskkeeper), Virus Scanning and Ad-aware scanning.

    I thought Task Scheduler just starts the application, but cannot choose for example, requests for information from dialog boxes, etc. Which is why I thought scripting might have been a way forward as having to close down apps, reply to dialog boxes, etc. kinda eliminates the point of the PC doin' it's business why I'm asleep.

    Thanks again

    Dan
     
  6. zyfos

    zyfos Resurrected

    Messages:
    236
    Well, the Task Scheduler has the option to shutdown an app after so long. You might could also check the event log to see what dialogs the different progs come up with. If you know how to script all that tho, please let us know.
     
  7. Hipster Doofus

    Hipster Doofus Good grief Charlie Brown

    Messages:
    5,920
    Location:
    Melbourne Australia
    Have a look at DrvcareXP.
    It doesn't do anti virus though.
     
  8. Indomidable

    Indomidable Guest

    Task Scheduler

    All you need is task sceduler.
    You have to go into the program settings and set them up.
    On my Win98SE system I had:
    Disk Clean up (whatever it's called) Weekly
    Scandisk setup for not showinging any messages close on complete/finish weekly.
    Another running a full scan w/o messages, close on complete/finish monthly
    Defrag all drives once a week 15% frag. also no messages, close on complete/finish

    Try all the settings:
    It allows running in background, pausing when system gets off idle, starting task from idle, etc.

    Everything's there if you look.
     
  9. ZipTriX

    ZipTriX Guest

    You could use AutoIt. Script what you need. It remembers mouse movements and keystrokes. Might be your last resort. :huh:
     
  10. Un4gIvEn1

    Un4gIvEn1 Moderator

    Messages:
    1,084