Hopefully this one will be an easy one for someone!
I am creating a temp file using 'system.io.path.gettempfilename' to use within a sub, however, when I try to delete it at the end of the sub it returns the message - "The process can not acces the file <filename I created earlier> because it is being used by another process" . In a nutshell, the code would look like this:
dim strFilename as string = system.io.path.gettempfilename
<Do stuff with the file, in this case using it to generate new transforms for MSI's>
I have tried using marshal and garbage collection to release the file for deletion with no luck. Any Comcontrol's etc. that could possibly be holding the file open are also closed. Any help would be greatly appreciated.
8/22/2022 - Mon
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!