|Hi, I am using this command with a little modification as you said|
for /f "tokens=*" %%j in ('dir /b/s smscntr_*.log') do move %%j D:\Deb\Temp
but in the desired folder, "Temp" only few (4 or 5) smsmcntr_ .log files are moving.
There are altogether more than 600 files inside the LOG folder, which I want to delete, I like your approach --> "to move the files into a different folder then delete the folder" But how can I move all the smscntr . log files to the destination folder.
I don't want to move all the *.log files those logs start with smscntr*.logs I want to move. I hope now I can get any solution.