HOW TO: Send a file from PDA to a computer on LAN

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello

i am trying to move a file programmatically from PDA to a computer on
LAN. for example when i connect my PDA to my pc A and when i start my
application on pda and press send then a file from my pda should transfer on
pc B which is on LAN.

Any help, suggestion, comments will be highly appreciate.

Regards,
 
That's going to depend on what the PC on the LAN supports. There's no
wide-open hole through which you could push a file to a random PC on a
random network (think about how a virus writer might use that). Is the PC
sharing any folders which the PDA might be able to access for writing? Is
the PC running a Web or FTP server?

Paul T.
 
Hello Paul

yes there is a shared folder where PDA will send the file.

waiting for your kind & quick response.

regards,
Adnan
 
When you are already connected to your LAN via WLAN or ActiveSync, why not
just write a file on the shared folder?

file.Open(@"\\PC_B\Share\myfile.dat")

Dex
 
Dear Dexlen Thanx for your concern but it's not allowed i think, i have
checked through

Dim bExist As Boolean = System.IO.Directory.Exists("\\MyPC\PDAShared")

and i got false, where i can access this by typing in my run command

any help, suggestion, code will be great helpfull.

regards,
adnan
 
You may need to map it. This can be done with the WNetXXX API calls. I
don't know if there's a wrapper, but you can certainly search the old
messages in the group with GoogleGroups:

http://groups.google.com/group/micr...tframework?hl=en&lr=lang_en&ie=UTF-8&oe=UTF-8

Alternatively, you could use the "net.exe" program to do the mapping,
depending on what type of device you are targeting. This would create a new
folder in \Network which represents the remote folder. Writing any file to
that folder would put it on the remote device.

Paul T.
 
Back
Top