File Access
--------------------------------------------------------------------------------
I am new to .NET, trying to write a basic web page that allows users to look at a list of text files on another computer, andclick one to download it.
'This works
mypath = "C:\" ' local drive
myname = Dir(mypath, vbDirectory) ' Retrieve the first entry.
' this does not, returns nothing, regardless of network drive used, drive is connected
mypath = "G:\" ' netwrok drive
myname = Dir(mypath, vbDirectory) ' Retrieve the first entry.
'someone recommended I try this, which gives me an error "Could not find part of the path"
Dim di As New DirectoryInfo("G:\")
Dim fiArr As FileInfo() = di.GetFiles()
'Someone else recommended trying GetFiles, when I do I get an error "Could not find part of the path", or "unknown user name or bad password."
mynames = GetFiles("\\tx30-ibe01\datadrive\devapps")
any idea what I need to do?
Mike
|