I want to create a log of every operation processed in a batch file and used the following but to no avail. How do I fix it (the file was not created)?
REM>> C:\"VTS\ADVANCED TOOLS\SYSTEM\LOG\Advanced tools %date%.log"
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to use
ECHO. Also, put the quotes around the entire file path if it contains spaces.One other note, use
>to overwrite a file if it exists or create if it does not exist. Use>>to append to an existing file or create if it does not exist.Overwrite the file with a blank line:
Append a blank line to a file:
Append text to a file:
Append a variable to a file: