Solved

Find the machine name of a mapped network drive using VC5.0

Posted on 1998-07-10
1
146 Views
Last Modified: 2013-11-19
Suppose a user select a file, I want to find out its abosolute path in the form of "\\ComputerName\C\filename.txt".
I can find out that a file selected from a mapped drive is on a remote machine but how to find out the machine name from just the mapped drive letter?
0
Comment
Question by:jshao
1 Comment
 
LVL 8

Accepted Solution

by:
trestan earned 100 total points
ID: 1319049
Please try this Win32 function:
WNetGetUniversalName
It gets more universal name in the form of \\servername\sharename\path\file from a driver based path.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question