Search found 5 matches

by Noobknight
18 Apr 2019 21:19
Forum: DOS Batch Forum
Topic: Is there any way to know a folder is open or not using command line?
Replies: 2
Views: 3403

Re: Is there any way to know a folder is open or not using command line?

Squashman wrote:
18 Apr 2019 08:27
Learned this from dbenham.

Code: Select all

2>nul ren Downloads Downloads && echo Folder is NOT locked || echo folder is LOCKED
Thanks for reply bro!
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"
by Noobknight
18 Apr 2019 03:23
Forum: DOS Batch Forum
Topic: Is there any way to know a folder is open or not using command line?
Replies: 2
Views: 3403

Is there any way to know a folder is open or not using command line?

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. :cry:
Many Thanks!
by Noobknight
22 Nov 2018 05:38
Forum: DOS Batch Forum
Topic: How to check write a file text completed to execute another task using batch script
Replies: 4
Views: 5057

Re: How to check write a file text completed to execute another task using batch script

"command ? Because that doesn't happen, a write either fails or succeeds. During writes the script waits for the command to complete." - Yes, I want after replace value in to file variable.txt and write it complete then execute a cron job using schtask Can say is I want to execute a cron job via va...
by Noobknight
21 Nov 2018 08:21
Forum: DOS Batch Forum
Topic: How to check write a file text completed to execute another task using batch script
Replies: 4
Views: 5057

Re: How to check write a file text completed to execute another task using batch script

"command ? Because that doesn't happen, a write either fails or succeeds. During writes the script waits for the command to complete." - Yes, I want after replace value in to file variable.txt and write it complete then execute a cron job using schtask Can say is I want to execute a cron job via val...
by Noobknight
18 Nov 2018 20:35
Forum: DOS Batch Forum
Topic: How to check write a file text completed to execute another task using batch script
Replies: 4
Views: 5057

How to check write a file text completed to execute another task using batch script

I have two files are env.txt and variable.txt . I'm using batch script to read all value in file env.txt and replace them in file variable.txt , after replaced all values, I want to execute a schedule task. My issue: Read - Write file working fine, but I don't know how to check variable.txt file wri...