To get the Drive letter of a network drive


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: To get the Drive letter of a network drive

Hybrid View

  1. #1
    Sinni Guest

    To get the Drive letter of a network drive


    I am writing a program in VB 6.0. The program is to read some files, process
    it and write the output files to the network directory, from where the users
    can get it. In my system the name of the network drive is like this Sys1
    on 'Xxxxyyy04'(I , so the drive letter for me is I:. The system which
    I am going to put the program on production is O:. And in future I have
    to install this program in other systems too and I dont know what drive
    letter they are going to map for this network drive.
    So I think first I have to get the drive letter of the particular network
    drive for the system (either I: or O: or any other) and then write the
    output files.
    How do I get the drive letter for the network drive? If anyone can give some
    sample that would be great.
    Thanks,
    Sinni.


  2. #2
    Dean Earley Guest

    Re: To get the Drive letter of a network drive

    > I am writing a program in VB 6.0. The program is to read some files, process
    > it and write the output files to the network directory, from where the users
    > can get it. In my system the name of the network drive is like this "Sys1
    > on 'Xxxxyyy04'(I" , so the drive letter for me is "I:". The system which
    > I am going to put the program on production is "O:". And in future I have
    > to install this program in other systems too and I don't know what drive
    > letter they are going to map for this network drive.
    > So I think first I have to get the drive letter of the particular network
    > drive for the system (either "I:" or "O:" or any other) and then write the
    > output files.
    > How do I get the drive letter for the network drive? If anyone can give some
    > sample that would be great.


    Cant you write direct to the UNC?

    \\Xxxxyyy04\Sys1\ instead if i:\

    --
    Dean Earley (dean.earley@icode.co.uk)
    i-Catcher Development Team

    iCode Systems



  3. #3
    Sinni Guest

    Re: To get the Drive letter of a network drive


    Thanks Dean, that worked. I have tried with "\\Xxxxyyy04\Sys1\" and it worked
    fine.
    Thanks again
    Sinni


    "Dean Earley" <dean.earley@icode.co.uk> wrote:
    >> I am writing a program in VB 6.0. The program is to read some files, process
    >> it and write the output files to the network directory, from where the

    users
    >> can get it. In my system the name of the network drive is like this "Sys1
    >> on 'Xxxxyyy04'(I" , so the drive letter for me is "I:". The system which
    >> I am going to put the program on production is "O:". And in future I have
    >> to install this program in other systems too and I don't know what drive
    >> letter they are going to map for this network drive.
    >> So I think first I have to get the drive letter of the particular network
    >> drive for the system (either "I:" or "O:" or any other) and then write

    the
    >> output files.
    >> How do I get the drive letter for the network drive? If anyone can give

    some
    >> sample that would be great.

    >
    >Cant you write direct to the UNC?
    >
    >\\Xxxxyyy04\Sys1\ instead if i:\
    >
    >--
    >Dean Earley (dean.earley@icode.co.uk)
    >i-Catcher Development Team
    >
    >iCode Systems
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center