I have wrote below lines in PS for take daily backup of application INSTALLDIR.
Note: INSTALLDIR is “C:\PF\ApplicationName” and contains many folders, sub folders and many files.
Add-Type -assembly “system.io.compression.filesystem”
Case 1: If no file is in USE from INSTALLDIR while running the PS script, Backup .Zip file successful.
Case 2: If any file is in USE from INSTALLDIR while running the PS script, Full Backup .Zip un-successful.
I need your help in Case 2 for taking backup of INSTALLDIR successful even file in use (i mean we can skip the in USE file in backup process) please.