I plan to distribute a free CD that automatically copies files to a connected usb device. This process will be done on the computers of the users that obtain the cd. The CD will contain an autorun.ini file that will instruct the computer to copy a set of files located on the cd..to a specific directory on the connected usb device. The usb drive letter is not the same on all the systems, therefore...Windows XP should automatically know the drive letter of the usb device before the copy operation begins. What would be the best way of creating a short batch file or script that I can place on the CD to execute this process? Also, please note that it is NOT feasible or recommended to include a batch file on the USB devices to sync this operation due to the explanation at the beginning of this paragraph. :) Thank You All
feedback
|
|
i don't think that such a tool exists... but here is what you can do... you can create a batch ".bat" file in you USB that contains the DOS commands to copy files from CD-ROM drive... and launch it on USBs autorun.. so when you will put the CD in and after that plugin the USB the files will be copied automatically... but.... this solution will be specific for your PC.. as it will be using drive letters... ........this solution will be order specific meaning you will have to plugin USB after or when the CD is already loaded... else pay me ;) and i will write you a smart tool... | |||||||
feedback
|
|
Just put a .bat file on the USB device that does | |||||||
feedback
|
|
To the best of my knowledge, what you are attempting is impossible without exploiting some security flaw in Windows. Windows deliberately prevents things from automatically acting on their own. It's not surprising, since this behavior is similar to that of malware. The best thing you can do is simply include an autorun option, which when chosen, does what you want it to do. | |||
|
feedback
|