Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

LogParser ERRORLEVEL=0 after error

$
0
0

C:\Development\report\Logs>logparser -i:CSV "SELECT * INTO raw.xml FROM 2012-06-05-log.csv"

Error: The specified input files are either empty or they do not contain any valid line

C:\Development\report\Logs>echo %errorlevel%

0

For this example the input file, 2012-06-05-log.csv, exists but is empty (zero length). I am trying to detect this using ERRORLEVEL and would expect it to set to a non-zero value after an error.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>