REM Automatically Upload Pictures to Flickr REM by Brock Angelo REM http://brockangelo.com/2009/07/07/automatically-upload-photos-to-flickr/ REM REM Copy pictures & Videos from card (or camera) to computer REM then upload to Flickr REM ================================================== REM Edit these five values (include the trailing slashes): set photoFormat="JPG" set videoFormat="AVI" set photoLocation="C:\Documents and Settings\Brock Angelo\My Documents\My Pictures\Canon SD790\" set videoLocation="C:\Documents and Settings\Brock Angelo\My Documents\My Videos\Canon SD790\" set flashcard="Z:\" set formatCard="yes" set uploadrLocation="C:\Python26\Uploadr\" REM You shouldn't need to edit anything below this line REM =================================================== @echo off cls echo. echo Copying new photos to My Pictures echo Please wait... echo. xcopy %flashcard%*.%photoFormat% %photoLocation% /S /R /H /K /Y echo. echo. echo Photos done. Downloading videos... echo. xcopy %flashcard%*.%videoFormat% %videoLocation% /S /R /H /K /Y REM XCOPY REM /S = copy all directories (except empty ones) REM /R = copy read-only files too REM /H = copy hidden & system files REM /K = copy attributes of files REM /Y = overwrite without asking IF %formatCard% == "no" GOTO UPLOAD rmdir /S /Q %flashcard% REM RMDIR REM /S = delete all directories REM /Q = delete without asking cls echo. echo Card formatted. echo You may remove the card. echo. echo. :UPLOAD tasklist /FI "IMAGENAME eq pythonw.exe" /FO CSV > search.log FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO RUNNING echo. echo Uploading Photos to Flickr... echo DO NOT close this window echo (Minimize is ok) echo. %uploadrLocation%uploadr.pyw :END del search.log exit :RUNNING echo. echo Uploadr is already running. echo Your pictures will be uploaded soon. echo. pause exit