Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 20th, 2006, 01:42 PM
Registered User
Join Date: Jun 2006
Location: Austin, tx, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?


Similar Threads
Thread Thread Starter Forum Replies Last Post
File access issue? asif110 Assembly Language 2 September 11th, 2007 02:06 PM
Convert MS Excell file into MS Access file ashish2001mca General .NET 0 June 29th, 2006 07:09 AM
File Access mtullock BOOK: ASP.NET Website Programming Problem-Design-Solution 1 December 21st, 2005 06:02 AM
ADE file in Access 2000 <---> Access XP ginoitalo Access 3 April 14th, 2004 09:06 PM
File Access natmaster Beginning PHP 2 June 23rd, 2003 03:20 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.