Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

How to copy a file during shutdown

May 19, 2005 1:53AM PDT

I have a Word doc that I need to keep on the network for others to alter, but I like to take home with me and alter each night.

Right now, when I first boot up in the morning, I have it copy the C: drive copy to the network drive. Ironically, the way I have it do this is through a command line batch file in my "Startup" folder.

I would like to do the reverse at shutdown, however, I have not found anything that will do this.

Any help would be mucho appreciated. Alternatively, is there a way to setup a Word doc so that when I do "File Save" I automatically save it to 2 places? I have Word 2000.

Discussion is locked

- Collapse -
try this
May 19, 2005 4:29AM PDT

Create a batch file which copies the files you need to copy

append this to the end of the file
%windir%\System32\shutdown.exe -s -t 00 -f

Heres a link
http://www.ss64.com/nt/shutdown.html

- Collapse -
forgot to note
May 19, 2005 4:32AM PDT

use the batch file to shutdown when you wish the files to be copied

shutdown the windows xp way when you wish them not to be copied