Access to files on PC from a mobile device

G

Guest

I have developed an application for mobile device using .NET Compact Framework
Smart devices that I use has a wireless LAN connection. I can use Microsoft Active Sync in wireless mode
Now I need to acces to files on hard disk of PC in direct mode, that is, without using Microsoft Active Sync
Is it possible with Compact Framework Class

Thanks in advance for advice !
 
J

Jan Yeh [MVP]

Hi, Lorenzo

Thanks for your interesting question...

I wrote a little code as follow

StreamWriter sw=new
StreamWriter(@"\\jannote\@exchange\test.txt", true);
sw.WriteLine(DateTime.Now.ToString());
sw.Close();

It runs well in emulator, and successfully created test.txt in my shared
folder.
It depends only on TCP, instead of ActiveSync, because I terminate
ActiveSync
in Task Manager. Just like what you did in Pocket File Explorer connecting a
shared folder on PC.

The disadvantage is that you have to create a shared folder before you
connect.
If that doesn't make your problem, this should be your answer.

--
Best Regards,
Jan Yeh

eMVP, MCAD, .NETcf Developer
Mobile Mind Company @ Taiwan

Lorenzo said:
I have developed an application for mobile device using .NET Compact Framework.
Smart devices that I use has a wireless LAN connection. I can use
Microsoft Active Sync in wireless mode.
Now I need to acces to files on hard disk of PC in direct mode, that is,
without using Microsoft Active Sync.
 
G

Guest

Hi Ja

Thanks for suggestion
I' ll try to follow the way U indicated me !

Best Regards
Lorenzo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top