Must have Admin Command line Toolkits

September 15, 2016

Dear Readers,

 

To move files from multiple folders  to a single root folder on another vol or folder. Move jpg from multiple folders on D:\ to another folder named C:\MyFolders

for /R  D:\ %G IN (*.jpg) DO xcopy “%G” “C:MyFolders\”

 

The below command list files that are over thirty days in age.

FORFILES /P “C:\inetpub\logs\LogFiles” /S /D -30 /C “cmd /c ECHO @file”

The below command delete files that are over thirty days in age.

FORFILES /P “C:\inetpub\logs\LogFiles” /S /D -30 /C “cmd /c del @file”