Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
598 B

  1. @echo off
  2. SETLOCAL ENABLEDELAYEDEXPANSION
  3. SETLOCAL ENABLEDELAYEDEXPANSION
  4. set _dir="."
  5. if NOT "%1"=="" (
  6. set _dir=%1
  7. )
  8. set _Error=
  9. FOR /F %%x in ('dir /s/b/a-d %_dir%') do @(perl -e "use strict; use XML::Parser; use CGI qw(:all); new XML::Parser(Style => 'Debug')->parsefile($ARGV[0]);" %%x 1>NUL 2>NUL
  10. if NOT !errorlevel!==0 (
  11. if "%_Error%"=="" (
  12. set _Error=1
  13. )
  14. Echo [Not Valid] %%x
  15. )
  16. )
  17. :end