Jump to content

Recommended Posts

Posted

Hello,
I hope that the day finds you well!

When I am creating backup|restore scripts for certain applications, oftentimes, after a successful launch of the applications, if I then attempt to remove those applications, the complete data is not removed due to one or more files being "locked".
I have employed a refresh|restore of Explorer.exe...but the only resolve is to log off - which I would prefer not to have to do!
 
Any ideas? Thanks for your time! Appreciated...as always!
Posted

Your file is locked by "windows defender" you need to wait for the scan to complete,

it's best to add the working path to the whitelist to improve,

but it's best to disable it.

Regards,
 

Posted

Hi.

Did I get correctly, that you want to backup files created by some application, where that application keeps the file(s) locked, even though the application has been closed "clean"?

You could try to processclose() that application. Use sysinternals procexp.exe to investigate, if there are child processes, that need to be killed as well.

 

 

You could try a two-step-approach:

  1. use robocopy.exe (comes with windows since XP) to copy the your files to a temporary, new folder, using the "/b" switch (backup mode. #requireadmin will be needed to use this switch)
  2. Then backup from this temporary folder, when done delete it.

Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...