Solved

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

Posted on 2008-06-16
2
3,397 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An article on effective troubleshooting
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

809 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