Skip to content

Instantly share code, notes, and snippets.

@eurica
Created February 13, 2011 22:50
Show Gist options
  • Save eurica/825248 to your computer and use it in GitHub Desktop.
Save eurica/825248 to your computer and use it in GitHub Desktop.
Automated backup script for Android smartphone
@echo off
set destdir=G:\autobackups
set devicefile=htc_desire
for %%d in (E F G H I J K L) do (
if exist %%d:\%devicefile% (
echo %%d is the %devicefile%
xcopy %%d:\ "%destdir%\%devicefile%" /V /E /D /C /I /Y > %destdir%\%devicefile%\lastbackup.txt
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment