Click here to get back home

How do I write program to copy files from a smartphone to local co

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How do I write program to copy files from a smartphone to local co Tony 08-14-2007
Posted by Tony on August 14, 2007, 4:22 pm
Please log in for more thread options
I am using VB.NET 2005 and trying to build an application for a windows
mobile 5.0 phone where I would like to be able to click a button on the
mobile device and when it is connected thru active sync....send a file to my
computer. I know in vb.Net I have access to my.computer.Filesystem, but in
the mobile development this does not appear to be an option. What do you use
to access the file system object?

Posted by Chilumba Mubashi [MSFT] on August 14, 2007, 7:07 pm
Please log in for more thread options
You can access the objects using RAPI.
The link below has an example of how to copy files between a device and a PC
(in VB). This will get your started.
http://support.microsoft.com/kb/307256


thanks


--
Chilumba Mubashi

This posting is provided "AS IS" with no warranties, and confers no rights.


>I am using VB.NET 2005 and trying to build an application for a windows
> mobile 5.0 phone where I would like to be able to click a button on the
> mobile device and when it is connected thru active sync....send a file to
> my
> computer. I know in vb.Net I have access to my.computer.Filesystem, but
> in
> the mobile development this does not appear to be an option. What do you
> use
> to access the file system object?



Posted by r_z_aret on August 16, 2007, 3:56 pm
Please log in for more thread options
On Tue, 14 Aug 2007 16:07:39 -0700, "Chilumba Mubashi [MSFT]"

>You can access the objects using RAPI.
>The link below has an example of how to copy files between a device and a PC
>(in VB). This will get your started.
>http://support.microsoft.com/kb/307256

RAPI is for _desktop_ applications. The poster wants to " click a
button on the mobile device"


>
>
>thanks

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please
indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Posted by Tony on August 16, 2007, 9:00 pm
Please log in for more thread options
Hi Chilumba,
I was able to sucessfully use the vb code mentioned in the below link, but I
was trying to build a VB.NET 2003 or VB.NET 2005 application that would
connect to the device. I could not get the API calls to work correctly in
.NET 03 when I converted it from the VB6 code from the below link. Is there
a different way to accomplish this in VB.NET?

Thanks

"Chilumba Mubashi [MSFT]" wrote:

> You can access the objects using RAPI.
> The link below has an example of how to copy files between a device and a PC
> (in VB). This will get your started.
> http://support.microsoft.com/kb/307256
>
>
> thanks
>
>
> --
> Chilumba Mubashi
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
> >I am using VB.NET 2005 and trying to build an application for a windows
> > mobile 5.0 phone where I would like to be able to click a button on the
> > mobile device and when it is connected thru active sync....send a file to
> > my
> > computer. I know in vb.Net I have access to my.computer.Filesystem, but
> > in
> > the mobile development this does not appear to be an option. What do you
> > use
> > to access the file system object?
>
>
>

Posted by r_z_aret on August 16, 2007, 3:56 pm
Please log in for more thread options
On Tue, 14 Aug 2007 13:22:03 -0700, Tony

>I am using VB.NET 2005 and trying to build an application for a windows
>mobile 5.0 phone where I would like to be able to click a button on the
>mobile device and when it is connected thru active sync....send a file to my
>computer. I know in vb.Net I have access to my.computer.Filesystem, but in
>the mobile development this does not appear to be an option. What do you use
>to access the file system object?

ActiveSync generally provides a tc/ip connection. And that means you
can use ftp or "shares". I use WinSock to write specialized ftp
clients that access a server on the "desktop". Or you can use standard
file routines to access shared "desktop" folders. I don't use VB, so I
can't help with details.

If you really want to allow asynchronous button click and transfer,
then you can write
1) a program that runs on the mobile device, captures the button
click, and waits for a "call" saying the device is connected via
ActiveSync.
2) a program that runs on the "desktop" and uses RAPI to notify the
first app. For details, see

25-28 July 2003 thread called "Notification on the Desktop PC when
ActiveSync start synchronization" in
microsoft.public.pocketpc.developer

8-11May 2007 thread called "Notification on the Desktop PC when
ActiveSync start synchronization" in
microsoft.public.pocketpc.developer

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please
indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Similar ThreadsPosted
Loading local files with Microsoft.XMLDOM May 19, 2007, 3:02 pm
copy files from desktop to smartphone external card November 21, 2005, 2:20 am
Smartphone SPV C500 - BT Serial Port Option Missing under Configuration.....File also missing in Windows directory, any ideas anyone or can someone send me the files to copy in please.... June 29, 2006, 7:36 am
WM6 Program Files June 23, 2007, 12:21 pm
Cannot Copy Files to Mobile Device August 3, 2007, 10:09 am
Vista - Copy Large Files to Cingular 2125 Fails February 23, 2007, 1:28 am
Pausing program execution and program focus April 6, 2006, 12:22 pm
Money Program for Smartphone? July 14, 2005, 5:12 pm
Mileage Program for Smartphone January 31, 2006, 2:42 pm
write service March 9, 2007, 12:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap