Tag: forfiles

Windows command for file size only

I needed a list of files from a folder with only filesize. The first choice of commands was the DIR command, however, there is no command line switch or combination that will allow for this type of output. I didn’t want to have to install any third party application or Microsoft extras to get the desired result. Since, I am…

Read More »

Delete Files That Are Older Than X Days in Windows

There was a need to delete log files that were older than a certain date from a folder on a Microsoft Windows based computer. This proved to be a difficult task to develop the proper command line that would accomplish this task. However there is a native Microsoft Windows command that does provide the necessary tools to delete files that…

Read More »