473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Local and server paths question.

Hi,
I have in my PC the 'F:\' drive, it is an alias to '\\SERVER1\\DOCS'
How can I get the real path for 'F:\'?
How can I determine if 'F:\', 'G:\', etc. is a local drive drive or an alias
to SERVER path?
How can I determine if '\\SERVER1\\DOCS' has an alias in my local PC?
I am using VC6.00.

Thanks in advance,
William GS
Nov 17 '05 #1
1 911
"William GS" <Wi*******@discussions.microsoft.com> wrote in message
news:5A**********************************@microsof t.com...
I have in my PC the 'F:\' drive, it is an alias to '\\SERVER1\\DOCS'
How can I get the real path for 'F:\'?
You can use the WNetGetUniversalName() function:

http://msdn.microsoft.com/library/de...versalname.asp
How can I determine if 'F:\', 'G:\', etc. is a local drive or an alias
to SERVER path?
See GetDriveType() here:

http://msdn.microsoft.com/library/de...tdrivetype.asp

It will tell you if a drive is fixed, removable or remote.
How can I determine if '\\SERVER1\\DOCS' has an alias in my local PC?
I am using VC6.00.


I'm not sure if this is the best way, but one thing you can do is call

WNetOpenEnum() with RESOURCETYPE_DISK

to open an enumeration of all of the networked disk resources on a machine
and then use

WNetEnumResource()

to get information about each one. Don't forget to call

WNetCloseEnum()

when you are done.

Regards,
Will
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jason | last post by:
What is the best way to handle global includes for 3 subwebs that may at various times consume similiar include files such as ENQUIRY FORMS. I ask this question as I now have the oppportunity to...
24
by: Lovely Angel | last post by:
Dear Friends Hope you doing great. I have recently shifted to a webhost which is Using Windows 2003 and IIS 6. Now my application was working fine earlier but now I am facing this problem ...
8
by: nick | last post by:
I have a problem and I've been using a cheezy work around and was wondering if anyone else out there has a better solution. The problem: Let's say I have a web application appA. Locally, I set...
3
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here....
2
by: Siobhan | last post by:
Hi - I create a input box as follows: <INPUT id="inpJobDescEmpSpec" style="BORDER-RIGHT: gray thin solid; BORDER-TOP: gray thin solid; Z-INDEX: 181; LEFT: 232px; BORDER-LEFT: gray thin solid;...
2
by: Jerry Spence1 | last post by:
I want to be able to convert: C:\Program Files\MyApplication into \\MyServer\TheShareNameForCDrive\Program Files\MyApplication Does anyone know how to do this?
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
29
by: Tony Girgenti | last post by:
Hello. I'm developing and testing a web application using VS.NET 2003, VB, .NET Framework 1.1.4322, ASP.NET 1.1.4322 and IIS5.1 on a WIN XP Pro, SP2 computer. I'm using a web form. How do I...
1
Airslash
by: Airslash | last post by:
Hello, not really sure if this is the correct forum, but there's something I need to check/ask. It will probably be a logical thing for seasoned developers though... Here are the company we are...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.