Link to home
Start Free TrialLog in
Avatar of life_j
life_j

asked on

Script to find the file size and perform an action

When I run the below command it check in the event viewer if there is an event 8001 and dumps the text to a txt file.

eldump  -l application -A 24 -m NTbackup -e 8001  >c:\test.txt

What I want to do is,if this command is successfull then the file size would be more then 1kb other wise file size would be zero.Depending on this criteria I want to run a another commmand.

Can you help me in how I can write a batch file to do this.
ASKER CERTIFIED SOLUTION
Avatar of GuruGary
GuruGary
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial