Robot Copier (GPL)
I have started writing more and more robot virtual assistants to help me perform tasks that I no longer have time to perform. One of my latest is this "Robot Copier.bat" batch script. It basically monitors a directory for files. Whenever it sees a new file that doesn't exist in another specified location, it automatically copies it for you.
I wrote this robot assistant to help me copy tons of CD's I've made over the years. Originally, I had to sit at the computer, insert the disc, copy the files, remove the disc, and do it again. With "Robot Copier.bat" I can shortcut those steps to just inserting and ejecting the disc. I don't even have to sit down any more.
Currently, it could only copy the files from the source directory you specify. It cannot copy sub-directories, because I didn't want to create any ambiguities. But you can easily change the code to make it do so.
"Robot Copier.bat" takes advantage of the following batch files. They are also available on this web site. So to use "Robot Copier.bat", you'll have to download these other batch scripts, if you don't already have them.
"Robot Copier.bat" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site. If you make changes to this batch file, please feel free to upload it back here to share it with others.
"Robot Copier.bat" source destination
If you download the "Command Line Tool: Eject" from Four Ways To Insert/Eject CD-ROM Tray In Windows, then this "Robot Copier.bat" can even eject the CD tray after it copies the CD. You just have to put these two lines right after the "for" loop:
call Sleep.bat 2
After you insert the CD, "Robot Copier" will start copying files. But at the same time, on Windows Vista, the AutoPlay dialog will pop up (see screen shot below). You can, of course, ignore it. After the disc is ejected, it will disappear by itself. But if you are working on the computer, that can be quite annoying.
The "Set AutoPlay defaults in Control Panel" link on the AutoPlay dialog can help you eliminate that dialog box. For discs that contains "Software and games", "Pictures", and "Video files", the default is to "Ask [you] every time". You can change them to "Take no action" so that Windows Vista will never ask you again.
"Robot Copier.bat" has worked really well. Within the last few days I have copied about a hundred CD's and DVD's to my hard drive. And doing all this leisurely while working on something else at my computer. With the command-line eject, all I had to do was swap the disc and close the tray.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
24 Users Online
Copyright © 1996 - 2021. All Rights Reserved.