jht129 Posted February 2, 2007 Share 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 Link to comment Share on other sites More sharing options...
xxAtimiskxx Posted February 2, 2007 Share 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 Link to comment Share on other sites More sharing options...
sentinel Posted February 2, 2007 Share 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 Link to comment Share on other sites More sharing options...
xxAtimiskxx Posted February 2, 2007 Share 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 Link to comment Share on other sites More sharing options...
Guest ABC Posted February 2, 2007 Share 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 Link to comment Share on other sites More sharing options...
jht129 Posted February 3, 2007 Author Share 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 Link to comment Share on other sites More sharing options...
Guest ABC Posted February 3, 2007 Share 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 Link to comment Share on other sites More sharing options...
jht129 Posted February 3, 2007 Author Share Posted February 3, 2007 that doesnt usually happen to me. Quote Link to comment Share on other sites More sharing options...
UnknownPrivelage Posted February 12, 2007 Share Posted February 12, 2007 THat doesnt happen if you have file name extensions viewable.. Quote Link to comment Share on other sites More sharing options...
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.