effusionx1
02-11-2005, 03:49 PM
Hello,
I am trying to search the following folder for all .tmp files. I then want a msgbox to appear for each .tmp file in there stating the name of the file.
My current code is:
visual basic code:--------------------------------------------------------------------------------
Private Sub Form_Load()
Dim sNextFile As String
sNextFile = Dir$("C:/DOCUME~1/JORDAN~1/LOCALS~1/Temp*.tmp*")
While sNextFile <> ""
MsgBox (sNextFile)
sNextFile = Dir$
Wend
End Sub
--------------------------------------------------------------------------------
I want to search this temp directory for all .tmp instances. However, I run the program and nothing happens!
Whats the problem?
I am trying to search the following folder for all .tmp files. I then want a msgbox to appear for each .tmp file in there stating the name of the file.
My current code is:
visual basic code:--------------------------------------------------------------------------------
Private Sub Form_Load()
Dim sNextFile As String
sNextFile = Dir$("C:/DOCUME~1/JORDAN~1/LOCALS~1/Temp*.tmp*")
While sNextFile <> ""
MsgBox (sNextFile)
sNextFile = Dir$
Wend
End Sub
--------------------------------------------------------------------------------
I want to search this temp directory for all .tmp instances. However, I run the program and nothing happens!
Whats the problem?
