Solved

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

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

685 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