
July 14th, 2009, 08:25 PM
|
 |
Contributing User
|
|
Join Date: Mar 2006
Location: Maine, USA
|
|
|
Writing the batch script for this isn't a problem - the problem is getting the file to autorun on any computer that you plug it into.
Windows does not allow removable storage aside from the CD drive to run automatically. Only fixed drives and CD media can have autorun properties in Windows. Therefore, in order for this to potentially work, you would need to modify every windows installation that you need this to function on - which not only creates extra work, but also defeats the purpose.
You would have to make sure that your particular media stick does not get marked as removable storage; create an autorun.inf file on the usb drive; and then have your .bat file to run from the inf file. Way too much work for such a simple command - especially considering you would have to modify each PC before hand.
I don't think you will find a solution to this.
|