Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

13 Aug 2013   #1

Windows 7 64Bit
 
 
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 System SpecsSystem Spec
.

26 Aug 2013   #2

Windows 7 64Bit
 
 

My System SpecsSystem Spec
Reply

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




Thread Tools



Similar help and support threads for2: How to run a batch file at logoff & some batch scripting help please
Thread Forum
Need some help on cmd batch file. General Discussion
Need help with windows batch scripting to create game for blind child General Discussion
Batch Scripting: How to mix SETLOCAL with non-local? General Discussion
Solved batch file General Discussion
Solved Batch File that grabs file names from folder to insert into batch file General Discussion
Batch file for... Customization
Need Help with Batch File General Discussion

Our Sites

Site Links

About Us

Find 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 03:51 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33