batch script to display file names in a directory older than 30 days? -


@echo off set dir_path="<path>"  rem *********set min age of files , folders  displayed********** set max_days= 30  rem *********display file names %dir_path%*********  dir %dir_path% -m *.* -d -%max_days% /-p /o:gn > "c:\users\desktop\dircontents.txt"  exit   ************************************************************************************************** 

here above script able display entire list of files , folders in particular directory. not files or folders older 30 days. please help

forfiles /d -30 /c "cmd /c echo @path older 30 days." 

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -