C:\Sandbox\test\sigtest !count! result.md5 !checksum!
The sigtest is a command line application that takes the following three values, in this order:
A line offset into a file
File to parse
a return value to fill with the result (This is my problem)
After looking around on the web, the general work around seems to be to create and then delete a temp file, however do to memory constraints on the system I am working on this is not a possibility, can anybody offer any advice or assistance on my issue? He is the full code for the batch file.
Code: Select all
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
set /a count=0
set checksum=0
FOR %%x in (C:\Sandbox\test\bin\*.*) Do (
C:\Sandbox\test\sigtest !count! result.md5 !checksum!
echo %%x
echo !checksum!
C:\Sandbox\test\md5 -c%%i %%x
IF ERRORLEVEL == 1 GOTO BAD
IF ERRORLEVEL == 2 GOTO NOFL
)
ECHO all good
PAUSE
CLS
EXIT
:BAD
ECHO the parameters do not match
PAUSE
CLS
EXIT
:NOFL
ECHO file not found
PAUSE
CLS
EXIT