cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tech_is
Level 5

DeleteDir function problem

Hi,
During installation I need to copy a particular folder and whole of its contents from the target path to another location.
I have used the XCopy function to copy the folder & then I delete the folder which is still present at the target-path.

The delete folder is done by the DeleteDir function but a sql query file is left back even after the call. How can this file as well as the folder be removed?:confused:

Is there any other alternative to perform this whole action?:(

Please give a small example. Please help.

Thanks in advance 🙂
Labels (1)
0 Kudos
(2) Replies
tech_is
Level 5

Doesn't the DeleteDir() function removes the executable as well as sql querry file? After my function call, these two type of files are left behind.

Please help.



Thanks in advance 🙂
0 Kudos
MGarrett
Level 6

If you specify "ALLCONTENTS" when using DeleteDir, it will delete all files EXCEPT:
1) Files marked read-only or hidden
2) Files marked as system files or windows-protected files
3) Files that you don't have permission to delete
4) Files that are in use
0 Kudos