Solved

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

Posted on 1998-07-10
1
147 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 42
repeatEnd java challenge 42 85
iSeries DB2 Query 2 97
twoTwo  challenge 35 107
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.

809 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