Computing.Net > Forums > Windows 2000 > Auto copy file to a second folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Auto copy file to a second folder

Reply to Message Icon

Name: drue66
Date: April 12, 2004 at 09:20:20 Pacific
OS: Win 2K
CPU/Ram: pentium4/ 512 mb
Comment:

I'm wondering if there is any setting within Windows that will automatically create a copy of any file that is saved to one particular folder and save it to an additional folder? Does anyone know if this is possible?

Thanks,
Andrea



Sponsored Link
Ads by Google

Response Number 1
Name: jam14online
Date: April 12, 2004 at 09:41:25 Pacific
Reply:

Yes, you can make a Scheduled Task that will run a batch file.

First, you'll have to make the batch file. This will copy the file from its existing folder to another. The layout should be something like this:

@echo off
copy "c:\folderone\sub\file.txt" "c:\backup"

You have to change "c:\folderone\sub\file.txt" to the full path of the file you want to copy. Then you need to change "c:\backup" to the folder where you want to copy the file to. Make sure you keep both paths enclosed in quotes. Just copy and paste the above two lines of code into Notepad and replace as I've outlined. Save in the root of your hard drive, i.e. C:, and name it something like "copy.bat". Make sure to include the quotes so Notepad doesn't at the .txt extension to the file.

Now we can add a Scheduled Task which will run the batch file (and make a backup copy of the file) on an automatic schedule, which you specify:

1. Click Start and move your mouse over All Programs.
2. Click Accessories and then click System Tools.
3. Select Scheduled Tasks.
4. Double-click Add Scheduled Task.
5. Click Next and then click Browse. Navigate to where you saved the batch file (C:), select it and click OK.
6. Under Perform this task: select the schedule you would like, e.g. When I log on.

I hope this helps,

James



0

Response Number 2
Name: drue66
Date: April 12, 2004 at 13:07:29 Pacific
Reply:

Thanks so much. I will try this out!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Auto copy file to a second folder

copying files to floppy and windows 2000 www.computing.net/answers/windows-2000/copying-files-to-floppy-and-windows-2000/16392.html

Problem with copying files to a floppy drive? www.computing.net/answers/windows-2000/problem-with-copying-files-to-a-floppy-drive/65718.html

convert sit-files to a pc-format www.computing.net/answers/windows-2000/convert-sitfiles-to-a-pcformat/2986.html