H
Henry
I have a script with which I'm battling with. I'm checking
file sizes for specific files on certain servers.
This script works 100% except when a failure ocurs with
the directory. I would like to write out an error
message when this ocurs. I've tried all sorts of things
but the error gets lots with the find command.
Any suggestions...?
for /f "tokens=1-5 delims=:" %%a in (server_list.txt) do (
for /f "tokens=1-5 delims= " %%i in ('"dir "\\%%a\%%b$%%c%%
d" | findstr /e bytes"') do (
echo %%a %%b:%%c%%d = %%k %%l >> %%a_Sizes.txt
)
)
file sizes for specific files on certain servers.
This script works 100% except when a failure ocurs with
the directory. I would like to write out an error
message when this ocurs. I've tried all sorts of things
but the error gets lots with the find command.
Any suggestions...?
for /f "tokens=1-5 delims=:" %%a in (server_list.txt) do (
for /f "tokens=1-5 delims= " %%i in ('"dir "\\%%a\%%b$%%c%%
d" | findstr /e bytes"') do (
echo %%a %%b:%%c%%d = %%k %%l >> %%a_Sizes.txt
)
)