Can anyone tell me how to alter the autorun file of a usb stick so thats it copies a folder and its contents to a folder on my computer and then restart my computer automaticly without the users intervention by keyboard or mouse?.
Printable View
Can anyone tell me how to alter the autorun file of a usb stick so thats it copies a folder and its contents to a folder on my computer and then restart my computer automaticly without the users intervention by keyboard or mouse?.
Er, that sounds a lot like the kind of thing a virus would do!
Only thing I can suggest is to have autorun.inf call an app.exe from the stick which then copies the files and performs the actions you require.
As kmount says, you can do that with autorun.inf but it does depend on the user having configured USB sticks to process autorun.inf
There's some info on the Microsoft web site about how you can disable autorun - I'd guess you just do the opposite to enable it
By default Windows will prompt you when it detects an autorun.inf on a USB stick - the only thing it will automatically execute is something on a U3 partition, which it sees as a CD drive.
What are you wanting to use it for?
Are you trying to figure out a way to automatically install software on a user's machine? Is the machine on a network you control? If so, I'd find some other way of installing software - there's so many nasty programs using autorun.inf you'll want to disable it completely network-wide.
--
David Hicks