Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I need to be able to access a file via a network path using the TextFieldParser object.

 

I have the following code:

 

<code>

Dim tfParser As New TextFieldParser(\\servername\e\April_CDR_Search\0423\filename.csv)

</code>

 

I get the error that the file can't be found, when I know it is there. When I change it to my local drive (with C:\ as the prefix, it works fine).

 

Is there something else I need to include in order for the TextFieldParser object to find the file on the network drive?

Thanks,

 

Bill Yeager (MCP, BCIP)

Microsoft Certified Professional

Brainbench Certified Internet Professional, .Net Programmer, Computer Programmer

YeagerTech Consulting, Inc.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...