Puertorekinsam
Active Member
- Joined
- Oct 8, 2005
- Messages
- 293
Greetings,
I use Shell to open a folder path because if the folder is not open, I can't 'kill' a file in it.
I want to close the folder after I'm done with the kill. I tried this:
If FileOrDirExists(Sheet2.Cells(Me.FileTypeList, 2) & "\" & Sheet2.Cells(Me.FileTypeList, 1) & "0." & FileType) Then
Call Shell("explorer.exe " & Sheet2.Cells(Me.FileTypeList, 2), vbMinimizedNoFocus)
Kill (Sheet2.Cells(Me.FileTypeList, 2) & "\" & Sheet2.Cells(Me.FileTypeList, 1) & "0." & FileType)
Close #1
End If
but the window stays open, can someone help me with closing the open window?
I use Shell to open a folder path because if the folder is not open, I can't 'kill' a file in it.
I want to close the folder after I'm done with the kill. I tried this:
If FileOrDirExists(Sheet2.Cells(Me.FileTypeList, 2) & "\" & Sheet2.Cells(Me.FileTypeList, 1) & "0." & FileType) Then
Call Shell("explorer.exe " & Sheet2.Cells(Me.FileTypeList, 2), vbMinimizedNoFocus)
Kill (Sheet2.Cells(Me.FileTypeList, 2) & "\" & Sheet2.Cells(Me.FileTypeList, 1) & "0." & FileType)
Close #1
End If
but the window stays open, can someone help me with closing the open window?