glutus
Jan 23rd, 2002, 06:50 AM
I'm writing an activex control that is to be used on the web. The control should be able to open a textfile that's located at the c:\ root of the user's computer. Is there a way to get to there? I've tried using:
Current = Dir("C:\")
While Current <> ""
If Right(Current, 3) = "txt" Then
Combo4.AddItem Mid(Current, 1, Len(Current) - 4)
If Combo4.Text = "" Then Combo4.Text = Mid(Current, 1, Len(Current) - 4)
b = 1
End If
If Current = "Settings.txt" Then a = 1
Current = Dir
Wend
This does not work when I try it from the server. I guess that it's looking at the server and not on the host computer. Is app.path a possibility?
Current = Dir("C:\")
While Current <> ""
If Right(Current, 3) = "txt" Then
Combo4.AddItem Mid(Current, 1, Len(Current) - 4)
If Combo4.Text = "" Then Combo4.Text = Mid(Current, 1, Len(Current) - 4)
b = 1
End If
If Current = "Settings.txt" Then a = 1
Current = Dir
Wend
This does not work when I try it from the server. I guess that it's looking at the server and not on the host computer. Is app.path a possibility?