Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #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?


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 11:09 PM.

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