Results 1 to 4 of 4

Thread: Network connection

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Skövde,Sweden
    Posts
    4

    Angry

    Problem:
    Is there any way too get access to files within the local network without the user has too connect it to a driveletter??
    When I code in LISP I can use specified names such as
    \\AcadServer01\program\R14\textfile.txt to find the file
    textfile.txt in the network without connecting a specific
    driveletter to this connection.??
    \\Acadserver01 is a network server, one of about 10-12, unique name.
    Is there a simular way in VB??


  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    you can use the same Syntax:
    Code:
    Dim FF as Integer'File variable
    Dim strFileName as String
    FF = FreeFile
    strFileName = "\\MyServer\MyDir\MyFile.txt"
    Open strFileName for Random as #FF
    'Read/Write from file
    Close #FF

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Under Windows all paths can be used as local drives or UNC (Uniform Network Connection?) paths, interchangeably.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    Skövde,Sweden
    Posts
    4
    OK! Thanx gwdash! I will try that one..

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