Solved

WNetUseConnection Fails in Windows NT

Posted on 2004-09-01
4
1,877 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

708 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

19 Experts available now in Live!

Get 1:1 Help Now