home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / win32s / bin / switch.bat < prev    next >
Encoding:
DOS Batch File  |  1995-07-11  |  4.7 KB  |  113 lines

  1. @echo off
  2. if "%1" == "" goto usage1
  3. if "%2" == "" goto usage1
  4. if "%2" == "nodebug" goto install
  5. if "%2" == "NODEBUG" goto install
  6. if "%2" == "debug" goto install
  7. if "%2" == "DEBUG" goto install
  8. goto usage1
  9.  
  10. :install
  11. cls
  12. echo ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  13. echo ░                                                                            ░
  14. echo ░ Win32s Debugging                                                           ░
  15. echo ░ ----------------                                                           ░
  16. echo ░ To assist debugging Win32 application, a special debugging version         ░
  17. echo ░ of Win32s is provided along with symbol files for both the debug           ░
  18. echo ░ and nondebug (retail) versions of Win32s.                                  ░
  19. echo ░                                                                            ░
  20. echo ░ These symbol files can be used in conjunction with the debug version       ░
  21. echo ░ of Windows 3.1 (as provided by the Windows 3.1 SDK) to get run-time        ░
  22. echo ░ diagnostic messages on a separate debugging terminal.                      ░
  23. echo ░                                                                            ░
  24. echo ░ The symbol files are also useful when the kernel debugger (WDEB386.EXE)    ░
  25. echo ░ is used to debug problems.  Symbolic addresses for Win32s routines         ░
  26. echo ░ will be enabled when symbol files are present.  Further information        ░
  27. echo ░ on using a debug version of Windows 3.1 and the kernel debugger is         ░
  28. echo ░ privided in the Windows 3.1 SDK.                                           ░
  29. echo ░                                                                            ░
  30. echo ░ This script controls switching between debug and nondebug versions of      ░
  31. echo ░ Win32s.                                                                    ░
  32. echo ░                                                                            ░
  33. echo ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  34.  
  35. rem Make sure Windows directory is correct path
  36. if not exist %1\system.ini goto usage11
  37. if not exist switch.bat goto usage2
  38.  
  39. pause
  40.  
  41. xcopy ..\%2 %1\system\win32s\
  42.  
  43.  
  44. copy  %1\system\win32s\winhlp32.* %1\system
  45. del   %1\system\win32s\winhlp32.*
  46.  
  47. copy  %1\system\win32s\win32s16.* %1\system
  48. del   %1\system\win32s\win32s16.*
  49.  
  50. copy  %1\system\win32s\winmm16.* %1\system
  51. del   %1\system\win32s\winmm16.*
  52.  
  53. copy  %1\system\win32s\w32sys.* %1\system
  54. del   %1\system\win32s\w32sys.*
  55.  
  56. copy  %1\system\win32s\compobj.* %1\system
  57. del   %1\system\win32s\compobj.*
  58.  
  59. copy  %1\system\win32s\ole2.* %1\system
  60. del   %1\system\win32s\ole2.*
  61.  
  62. copy  %1\system\win32s\ole2prox.* %1\system
  63. del   %1\system\win32s\ole2prox.*
  64.  
  65. copy  %1\system\win32s\storage.* %1\system
  66. del   %1\system\win32s\storage.*
  67.  
  68. copy  %1\system\win32s\ole2disp.* %1\system
  69. del  %1\system\win32s\ole2disp.*
  70.  
  71. copy  %1\system\win32s\ole2conv.* %1\system
  72. del  %1\system\win32s\ole2conv.*
  73.  
  74. copy  %1\system\win32s\ole2nls.* %1\system
  75. del  %1\system\win32s\ole2nls.*
  76.  
  77. copy  %1\system\win32s\typelib.* %1\system
  78. del  %1\system\win32s\typelib.*
  79.  
  80. copy  %1\system\win32s\stdole.tlb %1\system
  81. del  %1\system\win32s\stdole.tlb
  82.  
  83. del   %1\system\win32s\olecli.*
  84.  
  85.  
  86. if not exist %1\system\win32s\freecell.exe goto end
  87. del %1\system\win32s\freecell.*
  88. del %1\system\win32s\cards.*
  89.  
  90. goto end
  91.  
  92. :usage1
  93. echo ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  94. :usage11
  95. echo ░ Usage:                                                                     ░
  96. echo ░     switch [full path to Windows] [debug nodebug]                          ░
  97. echo ░                                                                            ░
  98. echo ░ Example:                                                                   ░
  99. echo ░     switch c:\windows debug                                                ░
  100. echo ░     This installs the debug version of Win32s into the appropriate         ░
  101. echo ░     Windows directories containing Win32s files.                           ░
  102. echo ░     Note: Win32s must already be installed.                                ░
  103. echo ░                                                                            ░
  104. echo ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  105.  
  106. :usage2
  107. echo ░                                                                            ░
  108. echo ░ You must run the SWITCH.BAT file from the directory that it resides in.    ░
  109. echo ░                                                                            ░
  110. echo ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  111.  
  112. :end
  113.