Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
conditional code and condition difference 9 84
maven archtype selection in eclipse 1 58
move a line in eclipse 3 109
scoreUp challenge 14 68
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

680 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