Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for shdsktop.bat

(view source code of shdsktop.bat as plain text)

  1. @ECHO OFF
  2. IF NOT [%1]==[] GOTO SYNTAX
  3. IF NOT "%OS%"=="Windows_NT" GOTO Syntax
  4. VER | FIND "Windows NT" > NUL
  5. IF NOT ERRORLEVEL 1 GOTO Syntax
  6.  
  7. SETLOCAL
  8. SET File="%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"
  9. IF NOT EXIST %File% (
  10. 	>  %File% ECHO [Shell]
  11. 	>> %File% ECHO Command=2
  12. 	>> %File% ECHO IconFile=explorer.exe,3
  13. 	>> %File% ECHO [Taskbar]
  14. 	>> %File% ECHO Command=ToggleDesktop
  15. )
  16. ENDLOCAL
  17. GOTO End
  18.  
  19. :Syntax
  20. ECHO.
  21. ECHO ShDsktop.bat,  Version 1.00 for Windows 2000 / XP
  22. ECHO Restore the Show Desktop shortcut in the Quick Launch tray
  23. ECHO.
  24. ECHO Usage:  SHDSKTOP
  25. ECHO.
  26. ECHO Written by Rob van der Woude
  27. ECHO http://www.robvanderwoude.com
  28.  
  29. :End
  30.  

page last modified: 2024-04-16; loaded in 0.0067 seconds