I need to open an Explorer Window so the user can drag n drop stuff there, but i need to know when the window closes so i can clean up a couple things afterwards, i'm using this code but it doesn't work how it is supposed to.
Dim oShl As New IWshShell_Class
Call oShl.Run("explorer.exe x:\", SW_SHOWNORMAL, True)
Call oShl.Popup("The Explorer Window has been closed", 4, "WSH Example", vbInformation)
it goes straight to the .popup part.
If i substitute explorer.exe with any other app it runs the app but doesn't show it, it just gives it a windowless proccess. that i have to terminate from the taskmanager.
I need it to open the explorer window and wait for it to close.
Any ideas how to go about this?
thanx in advance
Dim oShl As New IWshShell_Class
Call oShl.Run("explorer.exe x:\", SW_SHOWNORMAL, True)
Call oShl.Popup("The Explorer Window has been closed", 4, "WSH Example", vbInformation)
it goes straight to the .popup part.
If i substitute explorer.exe with any other app it runs the app but doesn't show it, it just gives it a windowless proccess. that i have to terminate from the taskmanager.
I need it to open the explorer window and wait for it to close.
Any ideas how to go about this?
thanx in advance