- Jun
- 570
- 4
After a fresh reboot, I find that the LOG command is not working properly.
First, after I issued the command
the variable %_logfile is still empty.
The log file is there, and it is logging whatever appears in the tab. Here is what I now see at the end:
The help for the LOG commands states as follows:
First, after I issued the command
log /a /w c:\tcmd\cmdlog-all.log
the variable %_logfile is still empty.
The log file is there, and it is logging whatever appears in the tab. Here is what I now see at the end:
The help for the LOG commands states as follows:
Command logging creates a record of each internal and external command executed either from the command prompt or from a batch file in the format below:
[date time][id] command
where the date and time are formatted according to the country code set for your system, id is the process ID, and command is the actual command after any alias or variable expansion.
As can be seen from the snippet of my log file above, there is no time stamp and no process ID. When I use the "/H" option with LOG, I also do not get time stamps or IDs. And "echo %_logfile" still returns "ECHO IS OFF". So does "echo %_hlogfile". But it appears that data is being logged to both files.[date time][id] command
where the date and time are formatted according to the country code set for your system, id is the process ID, and command is the actual command after any alias or variable expansion.