Solved

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

Posted on 2008-06-16
2
3,424 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 500 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

705 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