The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 895 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check if folder is locked
#1
When I save a webpage using firefox through: FILE > SAVE PAGE AS , many files and folders are downloaded.
Through QM I want to wait until everything is downloaded. Normally I use the arrow icon which turns blue (rightside of the address bar).
BUT I want to use the QM script in compiled exe form so it can be used by other users.
The problem with this is, is that the arrow icon might not visible or even present in the firefox browser of the other user.

That's why I want to check the folder itself while it is downloading the items (webpage). Because while downloading into a folder, that folder can not be deleted. So I assume it is locked in some way.

That's why I want to know if it is possible to check if a folder is locked.

I know there is:

1.  __HFile f.Create(_file OPE...
2.  FileGetAttributes with FILE_ATTRIBUTE_READONLY

But 1 is for files (at least, I assume it is. I could not find a folder method) and 2 doesn't work while firefox is downloading into a folder  (I tried).

Macro Macro168
Code:
Copy      Help
int attr=FileGetAttributes("$desktop$\2\test") ;; does NOT work while firefox is downloading into that folder...
if(attr&FILE_ATTRIBUTE_READONLY) out "READONLY"

I also tried to search for a command line method, but many suggest to check if a file is locked within that folder OR to write a file (text) into that folder...


Messages In This Thread
Check if folder is locked - by r0n - 06-12-2020, 06:28 AM
RE: Check if folder is locked - by Gintaras - 06-12-2020, 06:50 AM
RE: Check if folder is locked - by r0n - 06-12-2020, 07:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)