How to run a batch file at logoff & some batch scripting help please


  1. Posts : 82
    Windows 7 64Bit
       #1

    How to run a batch file at logoff & some batch scripting help please


    Hiya,

    I'd just like to run a simple batch file at logoff to backup some settings. I plan to use Robocopy, which is what i use to more thorough backups.

    Two questions:
    1. How make it run by clicking Start > Shutdown? (i realise i could make a shutdown batch file and run it instead, but i'd rather keep a standard 'workflow' for other users who use the machine.

    2. I'm 'ok' with batch files, but i've never tried to mirror to a different folder each time (automagically). What i'd like to do is have it backup a folder and call it "blah.1" then "blah.2" each time it is run, and then repeat once it gets to "blah.9" so it doesn't keep growing forever. I don't know how to do this.

    I realise no.2 is not really for this forum, but someone might know and i might as well ask

    :) Thanks.
      My Computer


  2. Posts : 82
    Windows 7 64Bit
    Thread Starter
       #2
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:29.
Find Us