Update.bat for Cygwin

From Stack Overflow
Jump to: navigation, search
@echo off
c:
cd \cygwin
if exist setup.exe.new erase /F /Q setup.exe.new
c:\cygwin\bin\wget.exe -O setup.exe.new http://cygwin.com/setup.exe
if exist setup.exe.new goto doMove
goto theEnd
:doMove
if exist setup.exe.old erase /F /Q setup.exe.old
rename setup.exe setup.exe.old
rename setup.exe.new setup.exe
:theEnd
c:\cygwin\bin\chmod.exe 755 setup.exe
setup.exe
Personal tools