We have a situation that I need to get resolved. We have a custom application which when closed is supposed to clear a folder of all of the xml files in it. if these files are not cleared the program will not open again. The issue is that when installed (or run for the first time by another user on the workstation) a new path is created in c:\users\%userprofile%\appdata\local\ApplicationName\Randomfoldername1\randomfoldername2\randomfolde rname3\.
The program is supposed to delete the 3 XML files in the randfoldername3 folder when it closes, but it does not always do so. I do not have access to the source of the original application, so I must create a script to automate this process to make sure these files are deleted, or at least create a file on the desktop which can be run if the application fails to open again.
These folders are named differently for each user profile with no consistency to the naming convention.
How do I enumerate this folder path into a string variable so I can then delete all of the files in that last folder?
Any help would be greatly appreciated. Thanks...
The program is supposed to delete the 3 XML files in the randfoldername3 folder when it closes, but it does not always do so. I do not have access to the source of the original application, so I must create a script to automate this process to make sure these files are deleted, or at least create a file on the desktop which can be run if the application fails to open again.
These folders are named differently for each user profile with no consistency to the naming convention.
How do I enumerate this folder path into a string variable so I can then delete all of the files in that last folder?
Any help would be greatly appreciated. Thanks...