However when I run the batch file and press enter for it to start.. everytime the screen clears (cls) to add another dot to my progress bar thingy it causes the screen to flash rather annoyingly so its hard to understand whats happening.. i'd like this to be almost seemless, however still want to keep the delays between the dots..
any ideas??
Code: Select all
@ECHO OFF
Title Active Desktop Recovery Fix
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
pause
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file.
PING localhost -n 1 -w 1000 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file..
PING localhost -n 1 -w 1000 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file...
PING localhost -n 1 -w 1000 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file....
PING localhost -n 1 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
PING localhost -n 1 -w 1000 > nul
echo HKEY_CURRENT_USER = ^&H80000001 >> ADRF.vbs
echo strComputer = "." >> ADRF.vbs
echo Set objReg = GetObject("winmgmts:\\" ^& strComputer ^& "\root\default:StdRegProv") >> ADRF.vbs
echo strKeyPath = "Software\Microsoft\Internet Explorer\desktop\SafeMode\Components" >> ADRF.vbs
echo strValue = "0" >> ADRF.vbs
echo ValueName = "DeskHtmlVersion" >> ADRF.vbs
echo objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, strValue >> ADRF.vbs
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script..
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script...
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script....
PING localhost -n 1 -w 500 > nul
ADRF.vbs
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
echo [#3] Refreshing desktop.
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
echo [#3] Refreshing desktop..
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
echo [#3] Refreshing desktop...
PING localhost -n 1 -w 500 > nul
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
DEL /F /Q ADRF.vbs
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
echo [#3] Refreshing desktop....
PING localhost -n 1 -w 500 > nul
cls
echo.
echo.
echo [ Active Desktop Recovery ]
echo -----------------------
echo By Chris Harris
echo.
echo.
echo [#1] Generating script file................ Complete
echo [#2] Executing created script.............. Complete
echo [#3] Refreshing desktop.................... Complete
PING localhost -n 1 -w 500 > nul
echo.
echo.
Pause