Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Windows CE - Copy File (directly) to an IP Address

Posted on 2008-06-16
2
Medium Priority
?
3,491 Views
Last Modified: 2013-12-21
In windows XP, using WNetAddConnection3, it is possible to enter in the ip address of the computer you are wanting to copy a file to (ie \\toComputer\toShareName could be \\192.168.0.11\toShareName).  However when I try the same thing on windows CE (using the same function), it will not resolve (but it works fine if the full name is specified).  Is there a way of adding a connection via IP address alone (on Windows CE (3.0 or 4.2))?  
Note: After it connects for the first time (and the non persistent connection is closed), it connects much more rapidly each time another connection (to the same computer) is made, I assume the address resolution information is stored somewhere (in the registry?), I could also just update that information if I knew where it was stored.
0
Comment
Question by:David_Sagar
[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 Comments
 
LVL 48

Accepted Solution

by:
Mikal613 earned 2000 total points
ID: 21925903
WNetAddConnection3 does not  support dotted decimal notation when specifying the
server name.  You will have to continue using the netbios name to get this
working.


http://www.eggheadcafe.com/software/aspnet/29879205/receiving-errorbadnetpa.aspx
0
 
LVL 1

Author Comment

by:David_Sagar
ID: 21926158
Thanks for the help.  Here's the relevent posts from the link provided by Mikal613.  It seems that this feature was not added to Windows CE.  I'll switch to FTP or some other technology to send directly to an IP (domain security is making name resolution cumbersome if not impossible).


Receiving ERROR_BAD_NETPATH using WNetAddConnection3 using IP addr - Da  
07-May-07 02:53:01
 
Hello.  I'm working in WinCE 5.0 connecting to a network share on a WinXP box
using WNetAddConnection3.  When I connect using a UNC containing the target
machine's computer name, everything works as expected (e.g.
the function WNetAddConnection3 returns ERROR_BAD_NETPATH (e.g.

What could I be missing that would allowing the first one to work while the
second one fails?

Thanks,
Dan

Receiving ERROR_BAD_NETPATH using WNetAddConnection3 using IP addr - Alexander T. Bussmann [MSFT]  
07-May-07 03:23:45
 
Unfortunately we don't support dotted decimal notation when specifying the
server name.  You will have to continue using the netbios name to get this
working.

Regards,
Alexander T. Bussmann [MSFT]
alexbu@microsoft.com
 
 
Receiving ERROR_BAD_NETPATH using WNetAddConnection3 using IP - Da  
07-May-07 04:14:00
 
Thanks.  Do you know the reasoning why this is not supported in WinCE 5.0?
It seems like such a simple task since it must resolve to an IP address
anyways.

Is it supported in WinCE 6.0? (In case we ever migrate)

Thanks,
Dan
 
 
Receiving ERROR_BAD_NETPATH using WNetAddConnection3 using IP - Alexander T. Bussmann [MSFT]  
07-May-07 09:08:01
 
This is not supported in CE5.0 or CE6.0.

The reason is rather simple - support for this was never added and never
existed in the SMB client when it was ported to Windows CE.  This piece has
been around the OS for quite some time and has always been like this.

Feel free to contact me about your needs regarding this feature.  It is
important for us to understand why our customers need the features that they
do so that we can justify future feature work.  This isn't a guarantee that
it will be provided, but it does help me when we are weighing the
priorities.

Thanks,
Alexander T. Bussmann [MSFT]
alexbu@microsoft.com
0

Featured Post

Independent Software Vendors: 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

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Suggested Courses

609 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