Created
April 7, 2016 15:48
-
-
Save epidemicz/a5d1989f97efe654ed17aca11eb2e338 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO off | |
REM You will need to change this | |
SET VsDevCmd="D:\vs2015\Common7\Tools\VsDevCmd.bat" | |
REM --------------------------------------------------- | |
SET xml_file=%1 | |
CALL %VsDevCmd% | |
FOR %%i IN ("%xml_file%") DO ( | |
SET filename=%%~ni | |
) | |
SET xsd_file=%filename%.xsd | |
REM ECHO xsd_file=%xsd_file% | |
xsd %xml_file% | |
xsd %xsd_file% /classes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment