VB6 - copying file to Pocket PC / PDA

Associate
Joined
26 Feb 2004
Posts
971
Location
China (Qinhuangdao)
I'm still using VB6 (yeah, I know), and want to write a bit of code to sync certain files to certain folders on my PDA.

The path in the address bar of Windows Explorer is :

"\CF Card\SYNC\Spending in China.xls"

However, a simple filedatetime("\CF Card\SYNC\Spending in China.xls") returns the message 'Path not Found'.

Opening windows explorer, I can find this folder under :

My Computer - Mobile Device - My Windows Mobile-Based Device - CF Card - SYNC

What would be the correct way of writing this path?
 
Right-clicking 'Mobile Device' doesn't give a properties option. It only shows
Collapse
Explore
Open

Right-clicking 'My Windows Mobile-Based Device' shows the following :

Type : System Folder
Location : \My Documents

Right-clicking '\CF Card' shows the following :

Type : File Folder
Location : \

Right-clicking '\CF Card\SYNC' shows the following :

Type : File Folder
Location : \CF Card
 
Last edited:
if you are using XP the dir you are looking for should be something like this

"C:\Documents and Settings\<Your Username>\My Documents\My Windows Mobile-Based Device\CF Card\sync"

if its vista then its different, dont use vista myself so im guessing

"C:\users\<Your Username>\My Documents\My Windows Mobile-Based Device\CF Card\sync"
 
I have XP, but I still can't get this to work. I have tried both :

filedatetime("C:\Documents and Settings\AlfCheesey\My Documents\My Windows Mobile-Based Device\CF Card\SYNC\Spending in China.xls")

and the following (as this is where my documents folder is) :

filedatetime("F:\Current Interest\My Documents\My Windows Mobile-Based Device\CF Card\SYNC\Spending in China.xls")

Both say 'Path not found'.
 
dont know then,

Are you using actisync? if so might be worth checking for a OCX \ DLL or even a api that allows you access.
 
Back
Top Bottom