Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux style pathnames for Visual Basic text files

Status
Not open for further replies.

newguy9

Instructor
Aug 13, 2001
6
0
0
US
My Visual Basic program (running on an NT client) needs to create and read text files stored on a Linux server.

The problem is that my VB program crashes when I try to use the standard Open statement with a pathname of the form:
//servername/directoryname$/filename
(the $ is part of the directory name)

How can I make it understand the pathname?

Many thanks for any help. :)
 
Hi,

I would have thought that should work as long as the linux server is running samba and has such a share. However, I would think the unc would be the same as for a win share, i.e. with backslashes . Can you link to that share ? e.g.

net use x: \\servername\directoryname$
dir x:

When you get it working remember that text files on linux have only a x'0A' as the linefeed whereas DOS/Windows text files have two chars, i.e. CRLF or x'0D0A'.

Hope this helps

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top