How to write the output to the log file?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
lalat06bag
Posts: 51
Joined: 10 Jan 2018 15:21

How to write the output to the log file?

#1 Post by lalat06bag » 15 Feb 2019 10:56

Hi,

I am running the below piece of code and want to write the output to the log file. please help.

forfiles /s /m *.* /c "cmd /c Del /q /s @path" /d -90

Thanks!

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How to write the output to the log file?

#2 Post by Squashman » 15 Feb 2019 12:32


Post Reply