BatchFileTips
Poor Man's Stealth FTP
(In the following, you must specify values for items in double quotes)
- Put all your pictures into one directory at an internet cafe
- Copy the C:\AUTOEXEC.BAT file over to C:\AUTOEXEC.BAK
Edit the AUTOEXEC.BAT file to add these lines:
CD ''\Dir\With\My\Pics'' SENDUP
- Go to the directory with your pictures
Create SENDUP.BAT that looks like this:
@ECHO OFF REM -- Configuration SET DIR=''Pics'' SET HOST=''myFtpServer'' SET USER=''myUsername'' SET PASS=''myPassword'' SET SCRIPT=sendup.scr REM -- Repeat this code for each file, down to End Repeat REM -- Create FTP Script SET FILE=''somePic.JPG'' ECHO USER %USER% %PASS% > %SCRIPT% ECHO BIN >> %SCRIPT% ECHO PUT %FILE% >> %SCRIPT% ECHO QUIT >> %SCRIPT% REM -- Attempt FTP and then Delete File and Script %WINDIR%\SYSTEM32\ftp.exe -n -s:%SCRIPT% %HOST% DEL %FILE% DEL %SCRIPT% REM -- End Repeat REM -- Clean Up DEL \AUTOEXEC.BAT REN \AUTOEXEC.BAK \AUTOEXEC.BAT DEL *.* CD .. RMDIR %DIR%
- Start her running, and walk away...
