First
create some folder in your pen drive. Remember the drive name like pen
drive [I:\] or removal disk [G:]. Here I, G is the pen drive location.
For example create three folders Music, Software, others into pen drive.
At
the same way create same three folders in any drive into computer. For
example I will copy the file into my D: drive, so I need to create same
three folders: Music, Software, others into D drive.
Now open notepad and write the code. Just copy this code and edit your way but don’t make a mistake.
----------------------------------------------------------------------------------------copy J:\music\*.*
D:\music\
DEL /Q J:\music\*.*
EXIT
------------------------------------------------------------------------------------
Save it by a name. Like I am saving this as Music.bat [.bat is the extension of batch program]
Now open a new notepad document. And write the same code for Software folders.
--------------------------------------------------------------------------------------copy J:\Software\*.*
D:\Software\
DEL /Q J:\Software\*.*
EXIT
------------------------------------------------------------------------------------
Same way save this as software.bat & create a new notepad document.
Write the same code for others folders
----------------------------------------------------------------------------------copy J:\others\*.*
D:\others\
DEL /Q J:\others\*.*
EXIT
----------------------------------------------------------------------------------
Save it by others.bat
Now the last step. Create a new notepad document. And write
---------------------------------------------------------------------------------
start Music.bat
start software.bat
start others.bat
------------------------------------------------------------------------------
Save
it by a name like Auto-copy.bat and save it in desktop or anywhere in
the computer. Now for testing copy some files in the folder of your
pen-drive and after that click Autocopy.bat ! I hope it will start copy the files from pen drive in to the computer.
0 comments:
Post a Comment