Batch file help
Trogan
London, UK
Guys, I need help/advice with two batch file commands. They are:
Can anyone help me or point me to a easy to understand batch file website?
Thanks!
Edit: Narrowed the problem in half. When the file is present, the batch gives a message that the file exists. When the file is deleted, the batch does not give an error message.
How do I get the batch to show an error message when the file is not present? I'm stuck!
- If exist and go to
- If not exist and go to
Can anyone help me or point me to a easy to understand batch file website?
Thanks!
Edit: Narrowed the problem in half. When the file is present, the batch gives a message that the file exists. When the file is deleted, the batch does not give an error message.
How do I get the batch to show an error message when the file is not present? I'm stuck!
0
Comments
cheers
What you gave works perfectly, but I'm still at a loss. The test.txt I mentioned above was just an example. This is what I have with all the files and folders involved... I can't get the batch to show File "license.txt" is not PRESENT!, when "license.txt" is not present. Can you see what the problem may be?
Thanks for your help.
I think this should work.
cheers
Thank you!