L
lh
I have some code working - but only if the files I need are on the c: drive.
Dim fs As New FileStream(sFile, FileMode.Open, FileAccess.Read)
I try to check sFile exists like this.
Dim fso As New Scripting.FileSystemObject
If fso.FileExists(sFile) Then
or
If File.Exists(sFile) Then
FileExists or Exists always returns false. I'm trying values like
"P:\tes\photos\leh.jpg" and "\\servername\webfiles\tes\photos\leh.jpg". I
have permissions etc.
What do I do to make this work? I would prefer a solution that uses drive
letter mappings because configuration is usually done by end users, but I
can live with servernames . thanks.
LH
Dim fs As New FileStream(sFile, FileMode.Open, FileAccess.Read)
I try to check sFile exists like this.
Dim fso As New Scripting.FileSystemObject
If fso.FileExists(sFile) Then
or
If File.Exists(sFile) Then
FileExists or Exists always returns false. I'm trying values like
"P:\tes\photos\leh.jpg" and "\\servername\webfiles\tes\photos\leh.jpg". I
have permissions etc.
What do I do to make this work? I would prefer a solution that uses drive
letter mappings because configuration is usually done by end users, but I
can live with servernames . thanks.
LH