Solved

WNetUseConnection Fails in Windows NT

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

  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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

752 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