DIGIT-ARC read-only archive · snapshot: July 23, 2026

neeed bluetooth file transfer program

6 posts · originally from https://geek.digit.in/community/threads/neeed-bluetooth-file-transfer-program.155238/

dashang
dashang Original post #1
Apr 7, 2012 at 9:14 PM
guys ASAP ITS URGENT !! i need program for transfering files from pc to pc or pc to mobile . Any kind of language will do . and i need code as less as possible
Vyom
Vyom #2
Apr 7, 2012 at 10:26 PM
Following code can be helpful to send files from PC to a windows mobile or vice versa.
(that's the best I can find from the first page of google results)

Language: C#

Code:
    string fileToSendToDevice = @"C:\Text.txt";

    OpenNETCF.Desktop.Communication.RAPI rApi = new OpenNETCF.Desktop.Communication.RAPI();

    if (!rApi.DevicePresent) return; // no active sync
    if (!rApi.Connected) rApi.Connect();

    if (!File.Exists(fileToSendToDevice)) return; // file not found

    rApi.CopyFileToDevice(fileToSendToDevice,
        Path.Combine(@"\My Documents\", Path.GetFileName(fileToSendToDevice)));

Source: *stackoverflow.com/questions/478571...-windows-mobile-and-from-windows-mobile-to-pc
dashang
dashang #3
Apr 8, 2012 at 1:07 PM
its by using web service ...i need to transfer via bluetooth ..if possible send me full code
nbaztec
nbaztec #4
Apr 9, 2012 at 4:02 PM
Homework?
dashang
dashang #5
Apr 9, 2012 at 7:24 PM
its for file completion , one experiment is there in our file so create program in any language , for transfering of files via bluetooth.
Please send a program
nbaztec
nbaztec #6
Apr 9, 2012 at 7:50 PM
I found this on SO Bluetooth Transfer on Android, but you should give attribution to others' code.