home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / tutsamp / cleanall.bat < prev    next >
DOS Batch File  |  1997-09-09  |  2KB  |  50 lines

  1. @echo off
  2. : /*+========================================================================
  3. :  File:      CLEANALL.BAT
  4. :
  5. :  Summary:   This Batch file performs a CLEANALL of the all the COM
  6. :             Tutorial Code Samples. WARNING: This batch file deletes all
  7. :             Visual Studio project files and other temporary work files
  8. :             created by VC++. All COM servers are unregistered from the
  9. :             the registry.  Most of the files that are generated during
  10. :             the build of the code samples are deleted. This includes the
  11. :             EXE and DLL executables as well as all debug symbol files. It
  12. :             assumes that you have set up your environment to compile
  13. :             Win32 applications using the Platform SDK with Visual C++
  14. :             v. 4.x+ or other compatible 32-bit C++ compiler.
  15. :
  16. :  Usage:     CLEANALL
  17. :               To perform a cleanall on all the tutorial code samples.
  18. :
  19. :  Origin:    8-23-97: atrent - Revised for COM Tutorial Sample series.
  20. :
  21. : --------------------------------------------------------------------------
  22. :
  23. :  This file is part of the Microsoft COM Tutorial Code Samples.
  24. :
  25. :  Copyright (C) Microsoft Corporation, 1997.  All rights reserved.
  26. :
  27. :  This source code is intended only as a supplement to Microsoft
  28. :  Development Tools and/or on-line documentation.  See these other
  29. :  materials for detailed information regarding Microsoft code samples.
  30. :
  31. :  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  32. :  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  33. :  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  34. :  PARTICULAR PURPOSE.
  35. : ==========================================================================+*/
  36. :
  37. IF NOT EXIST register\register.exe GOTO CLEAN
  38. call unregall.bat
  39. IF ERRORLEVEL 1 GOTO ERROR
  40. :CLEAN
  41. call makeall.bat cleanall
  42. IF ERRORLEVEL 1 GOTO ERROR
  43. goto :DONE
  44. :ERROR
  45. echo ================ CLEANALL Error.
  46. goto :END
  47. :DONE
  48. echo ================ CLEANALL Work Done.
  49. :END
  50.