|
Re: Date envionement variable in windows
I haven't written a single line of script or code in years but I think your line should be :
defrag C:\ /v >"C:\Program Files\Disk Defragmenter\Logs\Defrag_log_"%DATE%".txt"
Because if you put your variable inside the text delimiters, it will be treated as text and won;t be recognized as a variable.
Please let me know if my suggestion works.
|