Solved

WNetUseConnection Fails in Windows NT

Posted on 2004-09-01
4
1,918 Views
Last Modified: 2012-06-27
Hi,
      I had written a small application to copy files from remote machine to the local . I did by mapping the remote machine to the local machine first and normal file copying . To map the the remote machine to the local drive I used WNetUseConnection . Application worked fine . Later I found that the app fails due to WNetUseConnection in Windows 2000 Professional . Came to know from msdn that it is a bug in windows 2000 Professional . After installing the latest service pack it worked well . The error message I used to get before installing the service pack is ERROR_ALREADY_ASSIGNED .

Now it fails in Windows NT 4.0 with latest service pack 6.0 installed . Here the error message is ERROR_BAD_NETPATH (System error message 53) . I didnt find any info relating this problem in website or msdn unlike windows 2000 problem.

But the same application works well in all other windows version (98,XP,2000 with service pack 4.0)

Can anyone please help me to fix this problem ?

Regards,
Rajan
0
Comment
Question by:pamboo
  • 2
4 Comments
 
LVL 3

Author Comment

by:pamboo
ID: 11961726
Found the solution . In windows NT while mapping we can map subfolders directly . So I just map to the remote root  folder and changing to the subfolder later in the local machine .

Regards,
Rajan
0
 
LVL 3

Author Comment

by:pamboo
ID: 12100029
correction:

In windows NT while mapping sometime we cannot map subfolders directly . Only the root folder can be mapped without any problem . So I just map to the remote root  folder and changing to the subfolder later in the local machine  .
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12334836
PAQed, with points refunded (125)

Computer101
E-E Admin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

786 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