Jump to content

"Copy File" lock the "Thumbs.db"


Recommended Posts

Hello!

I used the "Copy file" for copying an image file from a directory and everything runs OK, exept one problem - after closing the vi (and even LabVIEW) the "Thumbs.db" file which inside the folder stays "locked" - no rename ,move or deletion of this folder by windows is allowed!

I know it make no sense but still this file stay locked!

It released again when I copy another file from other directory and then the previous "Thumbs.db" file released.

Did someone met this problem?

Link to comment

OK - I tried both solutions - the Unlocker is ok but its not a solution for a program which i develope to someone else use..

the other solution is nice - I implemented it and the only disadvantage of this solution is that for unlocking one folder you need to lock other and in this case i choose c:\windows - but it means that each time you use a common dialog file box in you program - the deafaut location will be c:\windows...

Thanks again!

LabVIEW Folder Unlocker.vi

  • Like 1
Link to comment

Thanks for uploading the code! I'm glad you found something that worked, I'll store that away in case I need it someday. :)

One workaround to the issue you mention is to do what was recommended in the thread I linked - store your actual working directory yourself and then use the API call before/after dialog calls to make everything place nice.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.