Getting activesync to transfer files - Windows Mobile Development and Hacking General

Hi, I am not normally a software developer (normally a web developer) but I have written a program in vbs which I need to be able to send files via activesync to my PDA. I have asked around and no one seems to know of a way to do this in vbs. Does anyone out there know of a way to get activesync to transfer a folder to the phone without having to litterally drag and drop the files your self. It would be great if there was a way I could call an exe to transfer the folder e.g.
activesync-transfer.exe "the directory to take files from" "the directory to put files in on the phone"
Or if there is a function in vbs it would be even better. As I say I have never done anything like this before so I am really needing some help. Any ideas, no matter how wacky appreciated. Thanks in advance
Jamie

whats wrong with copying the files normaly using explore in activesync or using mobil devices in my computer?

Er, would you really like to your application which is designed to store data and export it to your PDA to pop up saying: "BTW, I've no idea how to program this part so could you just open up that slow old program called active sync, hit explore and then browse to this directory and then copy the files to this directory from this other one"? Not really, I would like this process to be automated if possible.
Please if anyone can help, let me know.

You can copy a file from desktop to pda with RAPI and the
CeCopyFile() function to create a file on the pda.
Then open the file on the desktop and copy the content
to the new pda file.
Houser

Er, sorry if this seems a little ignorant of me. Is this a vbs function? As I said earlier I'm not the most experienced desktop programer. Thanks for your help.
Jamie

I am C++ programer. This is a ActiveSync Remote API function. I think you can call this function from vbs with some work but I do not how, dont have knowledge with vbs. sorry.
Houser

Another way could be to use the ActiveSync file synchronisation.
You can configure ActiveSync to sync a folder on the desktop with
one folder on the pda.
So your vbs app must only copy/create files in the desktop folder
and AS will sync them to the folder on the pda.
Houser

I was doing this for a bit but not many people have it set up and not all devices support it. In the end I used Microsoft's Cecopy and other apps from their Windows Mobile Power Toys to do it. However, I can't distribute these EXEs with my software as they are copyrighted by microsoft. If you ever hear of any freeware EXEs that do pretty much the same thing please let me know.
I need two apps:
Cecopy - copies files to and from the device (including sub directories)
RAPI_Start - starts files on the device
Thanks
jamie

Related

Activesync refuses to synch 2 files

Hi, I synchronise my XDA II with two PCs, office and home, but having just had to do a full restore, Activesync keeps saying that 2 files are not synched and just goes round and round trying to synch them. It's the same on both PCs.
I've made sure no files are read-only but cannot work out how to find which files are causing the problem.
Any suggestions gratefully received.........
Galadai said:
Hi, I synchronise my XDA II with two PCs, office and home, but having just had to do a full restore, Activesync keeps saying that 2 files are not synched and just goes round and round trying to synch them. It's the same on both PCs.
I've made sure no files are read-only but cannot work out how to find which files are causing the problem.
Any suggestions gratefully received.........
Click to expand...
Click to collapse
AT MS ActiveSync menu - Information Type - Files, when you use your mouse pointer, highlight the Files icon, right click and select Resolve items..., what does it say?
For me, usually when it does not synch properly, it means that
(a) I have files with foreign languuage filename that cannot be translated properly.
(b) your files stored in your desktop is not the same as the files in your device.
Hope this helps.
or maybe it's files being used by the pc or pda ?
activesync will not sync files being used
make sure no other programs are running on the xda
and no files from the my pocketpc doc is opened on the pc
I had the same problem, tried everything to remove the problem:
Checked all files in device and synchronisation folder on PC
Checked all Active Sync settings
Closed all applications
Tried time and time again
In the end the only way I resolved it was when I upgraded the ROM to 1.72
So basically my only advice it, Hard Reset or Firmware upgrade
Does Not Sync 2 Files
I too had the problem, but I think I may have got to the bottom of it.
On my desktop, after an unsuccessful ActiveSync, I noticed that my recycle bin contained 2 files that had not been there before. They were TomTom files. If I immediately did another Sync, all files were synced correctly.
But, next time I used TomTom, ActiveSync would report that 2 files were not synched, and another pair of TomTom files appeared in the Recycle Bin.
I don't know a cure, but at least I know I am not losing any data.
arberyn said:
I had the same problem, tried everything to remove the problem:
Checked all files in device and synchronisation folder on PC
Checked all Active Sync settings
Closed all applications
Click to expand...
Click to collapse
Well, there's one more thing you can try - and this is also what got rid of the problem for me: synchronise, then disconnect the device, run File -> Delete Partnership from the desktop Active Sync, allowing it to delete the synchronised files. Then check C:\Documents and Settings\<your account name>\Application Data\Microsoft\ActiveSync\Profiles and make sure there is no directory with your partnership's name - delete it if it still exists.
Now just reconnect your device and create a new partnership. ActiveSync will copy all "to-be-synchronized" files from the PDA to your PC, so no data is lost. The problem, however, will be gone - at least it was for me!
Cheers, Daniel
re:
I had these problems a couple of times when i hard reset my xdaii, the 2 culprit files are the westekk PPT and pdf. Its easily identified on the file explorer ion the xda2, its icon is not valid (no programs associated).
try deleting these 2 files and see. worked for me.

Pocket Outlook Database

Is there a way to copy the actual pocket outlook "Contacts database" file, which is found in the Database folder on the root of the device (seen through file browsing from pc)
To save a lot of time, i would like to copy this database file from one device, to several hundred. Scripted would be the best way to do this i would have thought.
Anybody know how?
Cheers.
thought i would give this a bump just incase anybody has any thoughts?
Still not sure how to get to the database, its in a protected area.
Thanks

Can WM6 read new Excel 2007 Format

I have Office 2007 and have *.xlsx files I want to sync with the pocket PC but the Pocket PC can't seem to see them, they are on the Pocket PC but are not in the Excel "All Folders" List. If I try to open the file from explorer on the pocket PC it says "There is no application associated with the File. Run the application first, then open this file from with in the application" But the Excel application in WM6 won't open it. Why would Microsoft release office 2007 and WM6 at the same time and make them incompatable?????
If this is true it is the most stupidest thing I have found so far, please someone tell me I am doing something wrong!!!
Its true. WM6 will not read Excel 2007 format. Well, most of you business partners neither. So you will end up saving all your documents in a friendly 2003 compatible format
...or switch to open office... (NeoOffice on a Mac...)
How are you uploading them too the phone? Are you copying them to a storage card or going through Active Sync?
I can't test it myself, but it's possible that active sync might solve your problem because it does some sort of file conversion when you sync files doesn't it? Perhaps the latest version, or the one in Vista will sort this?
Or maybe MS have just not realised the problem yet, woudln't surprise me!
They are through Windows Mobile Device Centre on Vista. The files are in the sync list.
This is so unbelievable that it is stupidity, it just does make sence, maybe microsft will release a patch to fix there F#*k up.
Well, I read about it: AFAIK there is no 2007-to-2003 conversion within ActiveSync. So you just save the files as 2003 files from Excel 2007.

Screen burnt, Almost dead XDA EXEC - help required obtaining phone contacts.

Right where do we start with this tragedy of a phone...
I basically need to retrieve my contacts from the phone, but unfortunately my screen has busted, and I can see very little of anything on the screen, I can just about decipher some words, and I basically need a way to "blindly" transfer contact details from the phone to a PC or another phone.
The methods I can think of are: Synching
I have tried an Active Synch connection but it hangs on the "Synchronising" stage. Another issue with the phone is the radio stopped working, so it was just a glorified personal organiser...So not sure if I need to enter anything on the PDA - as I can't see much of the screen.
Transfer each contact one by one:
My right hand hard key is "contacts" so I can enter my contacts screen. and therefore I know I am ON my contacts page, and I know clicking the right hand menu also gives me the context sensitive menu - but I CAN'T SEE IT, or very little, I can just about make out SOME options. So could someone go through what all the key presses would be required to either send via bluetooth - no doubt bluetooth is not on, and need to be able to "blindly" turn bluetooth on?
Or create a "Vcard"/business card? I think this is saved somewhere, which I can then access from synching and using my PC Window XP "explorer" to view the vcard from my PC. I am able to "sync" to view the folders from my PC, but not use the "Sync" to synchronise contacts, etc.
Can someone PLEASE PLEASE have a look at their XDA EXEC and figure out what key presses are required to save one contact person's details. I should be able to repeat the process for the rest.
Your patience and time is most appreciated.
Cheers,
Kasam
Edit 2: Is there a way to copy all contacts to a SIM card? I'm trying SIM Manager now, but I only seem to be able to go from SIM to phone. :/
Any ideas guys?
Another idea I had was if someone had a screen print software? And could send some print screens of the contacts menu with the options available?
Can't see how else to do this
If someone could be kind enough to contact me on abulkasam AT hotmail DOT com. most appreciated.
Can you install soft?
http://www.pocketvnc.com/projects/pocketvnc/index.php
Install that, and then try connecting to it from a VNC client on your pc...
Theoretically it should provide you full access to your pda desktop... using a window on your pc.
No guarantees here as i haven't actually tested it, just googled for Windows Mobile VNC Server
I managed to copy the PIM.VOL file over from the phone via Windows Explorer (on windows XP). So now that I have that file, can I copy it to a replacement XDA EXEC? Or does anyone know if I can open the file in any other way?
Many thanks.
Also unlikely I can "see anything" to install, unless someone can provide key presses for installation...
I can place files on to the pda through Windows pocket pc synch etc.
abulkasam said:
I managed to copy the PIM.VOL file over from the phone via Windows Explorer (on windows XP). So now that I have that file, can I copy it to a replacement XDA EXEC? Or does anyone know if I can open the file in any other way?
Many thanks.
Also unlikely I can "see anything" to install, unless someone can provide key presses for installation...
I can place files on to the pda through Windows pocket pc synch etc.
Click to expand...
Click to collapse
You will hit problems if you copy the file to another PDA. You can use an emulator to read the PIM file using XP - you will need to install some stuff though - see here:
Mobile Emulator for XP: (Or use visual studio 2005)
http://www.microsoft.com/downloads/d...displaylang=en
Related threads:
http://forum.xda-developers.com/showthread.php?p=1285640
Mike
That emulator is pretty cool. Managed to view my contacts on the emulator, but you can't send across contacts. So found some freeware to install on to emulator that saves contacts as CSV files, html etc. However does anyone know of a way of saving all the contacts in the business card format that keeps things like the "picture" associated with contacts? It stays when you beam a file, or send it as business card in any other form. It's not available on the emulator, so any program that replicates this?
I had issues synchronising the contacts with the emulator to activesynch. I used the "cradle" which lets Activesynch see it, but then it fails on the synchronization. Does anyone have any solution?
Many thanks for all your help.

How can we syncronize folders? (Not outlook folders)

Hi,
I want to keep my laptop desktop folder syncronized with hd2.
How can we chose a complete folder with every files in it (not only several files), to syncronize via autosync.
Secondly on syncronization hd2 is keeping the files in device. How can we address it to send files to storage card?
Thanks all.
thats all possible with windows mobile device center.
look at it carefully and you'll find the right options....
DN41
my Dear friend,
I am already actively using wmdc for syncronization of several files and email accounts.
After your advice I double checked, but still you can only chose files. not folders.
Please kindly show me the way if you can do.
Best wishes.
I don't know how much this may help.
If you connect your phone as a external drive, you can use the free M/S SyncToy v2.1 (yes I know it is a bit of a duff name, but it does the job really well). There is also quite a bit of flexibility in syncing.
thanks for advice.
I will keep it in mind.
hope there is a way to do it via Autosync.

Categories

Resources