MercMan May 14, 2009 at 08:58:45 Specs: Windows server 2003
I want get a file count in a log directory and then pipe it into a variable. Then I check the value and then it fails or pass depending on the number. I have this code: dir /a-d C:\logs /b/s |find /v /c "*.*" > %count%
I need to do a 'findstr' in an sftp log. Can this code be modified to find the # of matches in the log file? Create the variable? The sftp log does not display the 'transfer complete' statement' so I will do an 'ls' and based on the number matching strings in the log I will fail or succeed based on the variable. The code you created worked very well. Thx.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.