Thanks for reply bro!Squashman wrote: ↑18 Apr 2019 08:27Learned this from dbenham.
Code: Select all
2>nul ren Downloads Downloads && echo Folder is NOT locked || echo folder is LOCKED
But when I opened folder "Downloads" command line "ren" or "rename" still working fine. It only throw error when I open a sub folder in "Downloads"