Process.Start locks dir from delete?

DavyEFC

Well-known member
Joined
Dec 17, 2010
Messages
51
Programming Experience
5-10
I wrote a little app that launches some programs or dirs, essentially using:
VB.NET:
Try
    System.Diagnostics.Process.Start(Pth)
Catch
    ...
End Try

Works fine, but noticed that if, for example, i launch a dir using the app, then close it, then go to delete it i can't. It says its locked and the culprit is my app.
What am i missing here? I need it to launch whatever 'Pth' points to then disassociate itself.
 
No worries, its not a biggie at the moment, just thought it was strange...
Pth could be anything. Its passed as a param to my sub, e.g.
"C:\Program Files" (i.e. dir)
"C:\Program Files (x86)\Microsoft Office\Office12\Excel.exe" (i.e. app)
"C:\Users\User\Documents\Docs\CRM\HWK CRM.txt" (i.e. document)
 
Back
Top