home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1998 #11 / PCDIREKT_1198.bin / data / Util / ntsh / setup.cmd < prev   
Encoding:
Text File  |  1997-10-14  |  1.7 KB  |  59 lines

  1. #!ntsh
  2.  
  3. # New Technology Setup
  4. # by Martin Waitz
  5.  
  6. # this file is executed when ntsh starts up the first time
  7.  
  8. # verify that all files are present
  9. if ( not exist ntshrc.cfg ) then
  10.     echo "ntsh setup: could not find configuration file!"
  11.     goto Error
  12. endif
  13.  
  14. # start setup
  15. echo " _____________________________________________________________"
  16. echo "(o Installing $V..."
  17. echo
  18. echo "   Copyright (c) 1997 by Martin Waitz"
  19. echo "   http://ntsh.home.pages.de"
  20. echo
  21.  
  22. echo registering ShellLink...
  23. RegSvr32 /s /c $(SysDir)/ShellLink.ocx
  24.  
  25. echo Setting up defaults...
  26. set !Startup=$P/ntshrc.cfg
  27. # used global links (write to global config)
  28. set !HKCR@                               '#0x80000000'  # HKEY_CLASSES_ROOT
  29. set !HKLM@                               '#0x80000002'  # HKEY_LOCAL_MACHINE
  30. set !HKUS@                               '#0x80000003'  # HKEY_USERS
  31. # defaults for ls:
  32. set !HKCR/*/Directory/AnsiColor          '36'
  33. set !HKCR/*/Directory/CharSymbol         '/'
  34. set !HKCR/*/Directory/AlwaysShowExt      ''
  35. #set !HKCR/*/Directory/CommandLine       'cd %0'
  36. #set !HKCR/*/Directory/CommandLineLinked 'cd %0'
  37. set !HKCR/*/Hidden/AnsiColor             '1;30'
  38. set !HKCR/*/System/AnsiColor             '1;30'
  39. # some special file types:
  40. set !HKCR/exefile/AnsiColor              '1;31'
  41. set !HKCR/exefile/CharSymbol             '*'
  42. set !HKCR/lnkfile/AnsiColor              '35'
  43. set !HKCR/lnkfile/CharSymbol             '@'
  44. #set !HKCR/lnkfile/CommandLine           'openlink %0'
  45. set !HKCR/WinZip/AnsiColor               '31'
  46.  
  47. echo Done.
  48. echo
  49.  
  50. # read the real startup file
  51. source $(Startup)
  52. goto Startup
  53.  
  54. Error:
  55. echo
  56. echo "Error: exiting installation, using defaults."
  57.  
  58. Startup:
  59.