I have a stored proc which checks a directory for files and sends out an email if any are there. I'm updating it to look at subfolders now as well, and would also like to change it so it only shows files older than 1 day. Everything is working except for the files contained in subfolders, I can't find a dir command that will show the entire path, which i need.
Currently using
dir /s
Currently using
dir /s