Hello,
I want to display file names, in text file, from shared folder which are older than 4 days.
I can not pass username and password of production server to batch command to access shared folder.
What I have tried:
1) FORFILES /P \\Test\abc /D -4 /S /C "cmd /c if @isdir==FALSE echo /F /Q @path"
On running above command, I am getting an error :
ERROR: UNC paths (\\machine\share) are not supported.
2) dir "\\Test\abc" /b /s > fileslist.txt
In above command, there is no provision to pass D -4 i.e. to get files which are older than 4 days.