0
We have a process that executes a DIR
on multiple folders to check that the correct documents have been generated by another process.
In each of the target directories we use this command:
dir /A:-D "x:\name of document\_archive\YYYY\MONTH\dd.mm.yyyy\" /b
For one of the directories, we are getting an incorrect number because Thumbs.db is being counted.
How can I change the DIR command (which is actually being execute using xp_cmdshell from SQL Server) to ignore Thumbs.db?
or do I need to actually remove those files as explained here by PeterNetLive ?
2+1 if you squint hard you can see
ls | grep -v
:-) – RedGrittyBrick – 2015-05-06T16:08:31.077