checking file size and if it matches the criteria, set a variable. forfiles /p e scripts\ars.cmd\logs /m 2013-06-28-err.log /c "cmd /c if @fsize equ 0 set strS=Okay" forfiles /p e scripts\ars.cmd\logs ...
Selects a file (or set of files) and executes a command on that file. This is helpful for batch jobs. /M searchmask Searches files according to a searchmask. The default searchmask is '*' . /S ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results