Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for remmacro.bat

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

  1. @ECHO OFF
  2. CLS
  3. ECHO.
  4. ECHO RemMacro.bat,  Version 1.00 for Windows 95 / 98 / NT 4 / 2000 / XP
  5. ECHO Uses McAfee VirusScan to remove all macro's from specified MS-Office file
  6. ECHO.
  7. ECHO Usage:  REMMACRO  [d:\path\]filespec  [/S]
  8. ECHO.
  9. ECHO Where:  filespec points to any MS-Office file or files -- wildcards allowed
  10. ECHO         /S will scan subdirectories as well
  11. ECHO.
  12. ECHO Assumes McAfee VirusScan is installed in the following directory:
  13. ECHO C:\Program Files\Common Files\Network Associates\VirusScan Engine\4.0.xx
  14. ECHO Modify the path to SCANPM.EXE in this batch file if necessary.
  15. ECHO.
  16. ECHO Written by Rob van der Woude
  17. ECHO http://www.robvanderwoude.com
  18. IF [%1]==[] GOTO End
  19. IF NOT EXIST %1 GOTO End
  20. ECHO.
  21. ECHO.
  22. ECHO.
  23. ECHO.
  24. ECHO You are about to remove all macro's from the following MS-Office file:
  25. ECHO.%1
  26. ECHO Press any key to continue, or Ctrl+Break to abort
  27. PAUSE >NUL
  28. "C:\PROGRA~1\COMMON~1\NETWOR~1\VIRUSS~1\4.0.xx\SCANPM.EXE" /FAM /DAM /NODDA %1
  29. :End
  30.  

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