Computer Hope

Software => Computer programming => Topic started by: Yvonne on November 12, 2004, 09:28:44 AM

Title: How to make a daily auto-save of a particular file
Post by: Yvonne on November 12, 2004, 09:28:44 AM

I am a librarian assistant, may I know how to make a batch to auto-backup the informaton of the books returning and borrowing from the computer?
It really makes me feel headache.......can anyone help me????
:-[
Title: Re: How to make a daily auto-save of a particular
Post by: Corrosive on November 12, 2004, 12:57:21 PM
All you need to do is open up Notepad and type the following line:
Code: [Select]
xcopy {File you want to copy} {Where you want to put the copied file} /H /I /C /K /E /R /Y

Strictly speaking, some of those switches at the end are unecessary, but hey, they do make it easier to remember.

Anyway, just save the file, making sure it has a *.bat extension (put double quotes around the filename when you type it, ie "file.bat"). Then double-click when you need it to save.

Making it automatically update each day, however, is a little beyond what I'm really qualified to do. Check out Computer Hope's own DOS section and the DOS forum here.
Title: Re: How to make a daily auto-save of a particular
Post by: Jeronimo_Mc_Kinsley on February 21, 2006, 03:49:53 PM
Well u can use the Windows Task thingy.. Cause' I don't know what system u use (I suppose Windows 2000 cause' many networks use that), just open the Control Panel and there must be a Symbol named "Planned Tasks" or something like that. It must have Tasks in it's name open that, make a new task and choose which File is supposed 2 be opened evertime the task is executed. Then choose when and how often (in your case it would be daily). That's it !  ;)

Hope this helps (unless I'm too l8 !) [smiley=wink.gif]

P.S I don't know the exact names of the stuff cause' I use a German Windows XP !  :P :-[
Title: Re: How to make a daily auto-save of a particular
Post by: phokur on March 11, 2006, 11:02:36 AM
Quote
All you need to do is open up Notepad and type the following line:
Code: [Select]
xcopy {File you want to copy} {Where you want to put the copied file} /H /I /C /K /E /R /Y
What is the /H /I /C /K /E /R /Y you used here?


Also, it's calles Scheduled Tasks in English XP. But that's a good idea Jeronimo_Mc_Kinsley.