Using Windows Network Shared Locations in Basic4PPC/Windows Mobile...

Tex8503

Active Member
Licensed User
Longtime User
I know you can open a shared network location on a windows mobile device by going into file explorer and going to menu, then 'go to' then 'open path' and then 'new path'.

Is there a way to automate the establishment of the network path on boot? Right now, it'd require the user to actually set it up in file explorer...

Also, can that network path then be used in Basic4PPC to open/read/write files?


There are applications where I'd rather use the network library to create a client / server app and there's also times where I'd rather use the activesync library- but at the same time, there are instances where we can't install software on the client's PCs... so this might be helpful for us getting around those issues...

Thoughts?
 
Last edited:

Tex8503

Active Member
Licensed User
Longtime User
This does work. I just ran a test on a Motorola MC55a and i was able to copy a local file on the device to a windows shared folder. Please note that it appears that you can not use activesync to do this - you need either to be connected by Wi-Fi or an ethernet homebase.

Now... What I haven't tried yet is to copy to that network location if it already hasn't been setup in windows mobile. The network location I was copying to was already setup in file explorer on the device...

So I'm guessing that if your network share needs a username/password that you'd need to setup access to the share prior to trying to use it in your application because the 'file' IO commands in B4P don't have places for the username/password.

So this only leaves the questions of 'where is the network location information stored?' - if its the registry, we might be able to build a dialog into our app to ask the user for that info and save it to the registry.

Thoughts?
 

Tex8503

Active Member
Licensed User
Longtime User
So I clean reset my MC55a and tried my test program - when it was able to find the network resource but didn't have credentials to access it, it brings up the Windows Mobile screen to let the user enter the credentials. Very cool.

Wish we were able to define how we could set this ourselves (but that would take knowing where the windows mobile settings for network locations get saved to). This would also help if a user puts in the wrong info... because right now I had to clean wipe the device to reset the user credentials...

Still ... good to know that this is possible.
 
Last edited:
Top