Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WNetUseConnection Fails in Windows NT

Posted on 2004-09-01
4
Medium Priority
?
1,994 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.
Suggested Courses

971 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