jht129 Posted February 2, 2007 Posted February 2, 2007 Is there a way to make a .bat file so when I run it and insert a flash drive, it copies all the contents of the drive to the C:copied folder? or can this be done in C++... im still learning, so any help is appreciated. Quote
xxAtimiskxx Posted February 2, 2007 Posted February 2, 2007 Is there a way to make a .bat file so when I run it and insert a flash drive, it copies all the contents of the drive to the C:copied folder? or can this be done in C++... im still learning, so any help is appreciated.yes there is a way Quote
sentinel Posted February 2, 2007 Posted February 2, 2007 1. Open notepad 2. paste this in: xcopy f:* c:copied /EY 3. save it as something.bat Please use a more descriptive thread title in the future, and you'll get better responses. Quote
xxAtimiskxx Posted February 2, 2007 Posted February 2, 2007 and if oyu want it to auto run type this in note pad [autorun] shellexecute=<insert name of bat file> Quote
Guest ABC Posted February 2, 2007 Posted February 2, 2007 btw when you save it in notepad you need to put it in inverted commas ie "'s .. so "blahhhhhh.bat" Quote
jht129 Posted February 3, 2007 Author Posted February 3, 2007 btw when you save it in notepad you need to put it in inverted commas ie "'s .. so "blahhhhhh.bat" I didnt really get that statement... Quote
Guest ABC Posted February 3, 2007 Posted February 3, 2007 well say you put in blah.bat .. it will save as blah.bat.txt but if you save it as "blah.bat" it will save blah.bat Quote
jht129 Posted February 3, 2007 Author Posted February 3, 2007 that doesnt usually happen to me. Quote
UnknownPrivelage Posted February 12, 2007 Posted February 12, 2007 THat doesnt happen if you have file name extensions viewable.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.