Solved

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

Posted on 1998-07-10
1
143 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Powershell based monitoring system 2 127
Adapt this command to show who installed 29 102
sumNumber challenge 16 98
zeroFront challenge 7 70
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now