Hi guys!
I want to check folder "Downloads" is opening or not using command line. I tried with wmic or find commands to get process of Windows Explorer but still stuck.
Many Thanks!
Is there any way to know a folder is open or not using command line?
Moderator: DosItHelp
-
- Posts: 5
- Joined: 18 Nov 2018 20:31
Re: Is there any way to know a folder is open or not using command line?
Learned this from dbenham.
Code: Select all
2>nul ren Downloads Downloads && echo Folder is NOT locked || echo folder is LOCKED
-
- Posts: 5
- Joined: 18 Nov 2018 20:31
Re: Is there any way to know a folder is open or not using command line?
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"