|
-
Jan 25th, 2002, 08:47 PM
#1
how can I refresh a directory?
I'm trying to delete a file, and then I want to double-check to make sure that the file is actually deleted. But even when the file is deleted by my program, Dir$ (fileName, vbNormal) tells me that it has not been deleted. I guess it takes a few seconds for windows to refresh the directory .
Is there a way to refresh a specified directory?!!
-
Jan 26th, 2002, 04:13 PM
#2
anyone can help!!!!
-
Jan 26th, 2002, 04:29 PM
#3
-
Jan 26th, 2002, 08:29 PM
#4
-= B u g S l a y e r =-
Like Pickler, I neither get any problems like u'r describing...
VB Code:
Private Sub Command1_Click()
Kill "C:\a\test.txt"
If Dir("C:\a\test.txt", vbNormal) = "" Then
MsgBox "nix more file"
Else
MsgBox "ohyeahhh.. file bigtime"
End If
End Sub
works like it should...
maybe if u posted the snippet in question ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|