Easy OBEX transfers in Windows XP SP2 (sending files to phones)

Login to reply to this topic.
Tue, 2005-07-26 11:04
Joined: 2005-07-26
Forum posts: 2
Hello,

Maybe you have had similiar problems than I did, so I want to share this precious piece of information =]

I had to send files (OBEX push transfer) to a phone via Bluetooth using Windows XP SP2 Bluetooth stack. Nicely enough, XP SP2 provides thing called "Bluetooth File Transfer Wizard", also known as fsquirt.exe, which is a user friendly way to send files to a chosen phone. However, initiating the transfer with a specific filename proved to be a difficult task. fsquirt.exe ignores all command line parameters, because it uses more advanced drag'n'drop and send to -context menu support.

fsquirt.exe implements IDropTarget COM interface which allows finely tuned drag'n'drop information passing in Windows environment. I spent two days banging my head to a wall trying to simulate Send to context menu drag'n'drop event as instructed in the article: http://www.codeproject.com/shell/sendtomail.asp. All attemps just caused access violations in some untraceable location. Maybe some Windows API guru could have told me what was the problem, but I was kind of a rush and couldn't get help instantly.

Then my luck turned. I accidentally bumped to a free application "runmenu.exe" by Eluent software. http://www.eluent.com/runmenu.htm. It's made for calling Explorer's context and Send to menu items from .BAT files. I just added a process call:

Code:
C:\project\...\runmenu>runmenu /wait:window /exec:"Send To\Bluetooth device" c:\lines.txt

and voila! Using an external helper exe is a kludgy solution, but works for now. If anyone can point me free Java Bluetooth library with OBEX and Microsoft Bluetooth stack support, I'd be grateful.

Cheers,
Mikko Ohtamaa
Oulu, Finland



Tue, 2005-07-26 13:08
Joined: 2005-07-26
Forum posts: 12
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
Hi Mikko,

I am a newbie, didn't exactly comprehend the post: By this method you were able to send the file -> lines.txt to the phone?


Tue, 2005-07-26 13:30
Joined: 2005-07-26
Forum posts: 2
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
Quote from: architgupta
Hi Mikko,

I am a newbie, didn't exactly comprehend the post: By this method you were able to send the file -> lines.txt to the phone?

Yes, I sent file c:\lines.txt, but you could place any file instead of it.
Tue, 2005-07-26 14:01
Joined: 2005-07-26
Forum posts: 12
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
Thanks.
Tue, 2005-08-23 20:10
Joined: 2005-08-23
Forum posts: 1
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
Thanks, this is just what I was looking for. Your solution is definitely a kludge but it works! Smiley
Wed, 2005-08-24 08:11
Joined: 2005-02-11
Forum posts: 214
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
Excellent. Something I have been looking for  a long time.  Grin

"I only know that I know nothing." (Socrates)

Fri, 2006-03-03 09:19
Joined: 2006-03-03
Forum posts: 3
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
hi mikko,
Thanks a lot for ur gr8 help dude..
Fri, 2006-03-03 14:08
Joined: 2006-03-03
Forum posts: 3
Re: Easy OBEX transfers in Windows XP SP2 (sending files to phon
hi mikko, one more thing.. the code u specified sends the file to one phone only.. i want to send it to multiple reciptent can u help me out if u can plz...
  • Login to reply to this topic.