View Single Post
  #5 (permalink)  
Old 09-08-2008, 03:06 AM
san9jay san9jay is offline
What's Jailbreak?
 
Join Date: Apr 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts

Attached is a simple Windows XP Batch file that can be used for disabling the backups.

Save it as IPhoneDisableBackups.cmd
and run it as:

IPhoneDisableBackups.cmd true

The batch file assumes the ITunes install is on your C: drive.

If it is on another drive edit the batch file and change the c: drive to d: or whatever the drive is where ITunes is installed.

On Vista 64 the file directory is CommonProgramFiles(x86) I think so you might have to change %CommonProgramFiles% to %CommonProgramFiles(x86)% as well.


/sanjay


@echo off
@REM Simple Batch file on windows to enable/disable Automatic Backups on the IPhone
c:
cd "%CommonProgramFiles%\Apple\Mobile Device Support\bin"
@if %1X==X goto help
@if %1X==trueX goto itstrue
@if %1X==falseX goto itsfalse
goto help
:itstrue
Echo Disabling Backups
goto doit
:itsfalse
Echo Enabling Backups
goto doit

:doIt
set VALUE=%1
defaults.exe write com.apple.iTunes AutomaticDeviceBackupsDisabled -bool %VALUE%
goto end

:help
echo "To Disable IPhone Automatic Device Backups execute "%0 true"
echo "To Enable IPhone Automatic Device Backups execute "%0 false"

:end
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote