-

2011年8月3日星期三

Can you automatically copy files from one folder to another?

-Is there a quick and easy way to automatically copy files from one folder to another? I have a desktop PC and a Laptop and a 16GB usb. I wan to automatically copy files from my Itunes folder on my PC to the USB so as I can plug it into my laptop and have the files there. Is there a way to do this?1. Create a text file

2. Type OPEN=AUTORUN.BAT

3. Save the file as AUTORUN.INF

4. Create a new text file

5. Type in the following phrase, replacing XXXX with the directory path for the files you wish to transfer; and YYYY with the destination directory path:



XCOPY "XXXX*.*" "YYYY"



For example if you wished to copy all files from the Administrator's Documents folder to the USB drive labeled drive G, you might type XCOPY "C:\Users\Administrator\Documents\*.*" "G:\"



6. Save your text file as AUTORUN.BAT

7. Place both files on the USB drive.



From then on, when you plug in the USB drive, your computer will activate AUTORUN.INF which automatically runs AUTORUN.BAT (Yes, it's redundant, but it's necessary). AUTORUN.BAT is a batch file that uses one text command to search for all files with a "." in the file name and copy them over to the specified destination, your USB drive.well..you can simply use a cross over cable between you pc and laptop for file transfer. and you can do it automatically

没有评论:

发表评论