Friday, September 6, 2013

updates to the install scripts for the old pc, as it is being repurposed to stream video from youtube (cleanup.cmd)

rmdir /s /q "C:\Documents and Settings\%username%\Favorites\Links"
rmdir /s /q "C:\Documents and Settings\%username%\Favorites"
rmdir /s /q "C:\WINDOWS\pss"
rmdir /s /q "C:\WINDOWS\resources"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\CD Burning"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Internet Explorer"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Credentials"
rmdir /q /s "C:\Documents and Settings\%username%\NetHood"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Temp"
mkdir "C:\Documents and Settings\%username%\Local Settings\Temp"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"
mkdir "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"
rmdir /q /s "C:\Windows\PIF"
rmdir /q /s "C:\Windows\System32\config\systemprofile"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\History\History.IE5"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\History"
rmdir /q /s "C:\Documents and Settings\NetworkService\Local Settings\Temp"
mkdir "C:\Documents and Settings\NetworkService\Local Settings\Temp"
rmdir /q /s "C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files"
mkdir "C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files"
del /q C:\WINDOWS\system32\catroot\*.tmp
del /q C:\WINDOWS\system32\catroot2\*.log
del /q C:\WINDOWS\system32\catroot2\*.txt
del /q C:\WINDOWS\system32\catroot2\*.chk
del /q C:\WINDOWS\system32\catroot2\*.edb
del /q c:\windows\*.log
del /q c:\windows\*.bak
del /q c:\windows\{*
del /q C:\windows\cthelp*
del /q C:\windows\system32\*.rfx
del /q "C:\Documents and Settings\%username%\Cookies\*.*"
rmdir /q /s "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files\Content.IE5"
C:\windows\regedit.exe /s C:\windows\system32\fileextensions.reg
rmdir /q /s "C:\WINDOWS\NLDRV"
rmdir /s /q "E:\script\files\firefox\Firefox\Profiles"
mkdir "E:\script\files\firefox\Firefox\Profiles"
C:\windows\System32\xcopy.exe /y /E "C:\Documents and Settings\%username%\Application Data\Mozilla\Firefox\Profiles" "E:\script\files\firefox\Firefox\Profiles"
copy /y "C:\Documents and Settings\jessica\Application Data\foobar2000\foobar2000.cfg" E:\script\files\foo\foobar2000.cfg
copy /y "C:\Documents and Settings\jessica\Application Data\foobar2000\theme.fth" E:\script\files\foo\theme.fth