CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    5

    Accessing Network Shared Folders

    I am new in VB, and trying to learn... i have difficulty in writing a file residing on a network shared folder. I used:

    Open "\\org3\org\test.dat" For Random As #1 Len = Len(MyRecord)

    I figure the problem is that the folder is password protected... and although I know the password for full network access, i do not know how to parse this password through VB. It will be no problem if i first logon into the shared drive before executing my VB code... but that is not what i want.

    Pls Help...


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Accessing Network Shared Folders

    you can programmatically connect to a share specifying username and password by using the WNetAddConnection2 api.
    Then you can access your file (using a drive letter).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured