Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

WNetUseConnection Fails in Windows NT

Posted on 2004-09-01
4
Medium Priority
?
1,972 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

719 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