I put a file in one folder want it copied to an external harddrive

jocycliff

Limp Gawd
Joined
Apr 4, 2001
Messages
491
I am looking for something so when I drop a file into a folder it automatically also copies it to a folder on my external harddrive.

Any suggestions?

Thanks
 
Did a little thinking about this one and came up with a solution.

Rather than drag and drop the file(s) to another folder, use a "Send To" shortcut when you right-click the file. You can then have this shortcut perform the necessary actions. Here's how it works:

1. Open C:\Documents and Settings\<username>\SendTo
2. Create a new batch file in here, such as "Mirror_to_external_HD.bat"

This file will contain the following:
Code:
@echo off
:nextfile
if "%1"=="" goto end
copy %1 c:\your_local_directory_to_copy_to
copy %1 x:\your_external_hard_drive_to_copy_to
shift
goto nextfile
:end

3. now when you want to copy file(s) to both the local folder and the external hard drive, just right-click the file(s) and select Send To -> Mirror to external HD

The important part of the script are the two lines which do the copy to both locations. The loop and shift is to be able to processes multiple files at a time (they are each treated as a separate command-line argument).
 
Back
Top