Solved

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

Posted on 2008-06-16
2
3,371 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
Comment Utility
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
Comment Utility
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 book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now