![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
It should be so simple, but it's not working.
I have made a simple program (almost the example): I want to copy the file LGXVRDmu.CSV from my device (in \My Documents) to my desktop computer. I am using activesync and it's connected OK. Two problems: 1. my programs says 'cannot connect to device.' 2. if i delete this check (rapi.isconneted=true) I get a new error that he can not write. Sub Button2_Click rapi.New1 rapi.Connect t = Now '3 seconds timeout. Do Until rapi.IsConnected = true DoEvents If (Now - t)/cTicksPerSecond > 3 Then Msgbox("Cannot connect to device.") AppClose End If Loop If rapi.DeviceFileExists("\My Documents\LGXVRDmu.CSV") = true Then rapi.CopyFileFromDevice1("\My Documents\LGXVRDmu.CSV",AppPath) End If End Sub |
|
|||
|
I tried it but does not work. Then I cut my program in pieces:
I get the message 'connected' I get the message 'file found' (so it can get the file when i start the program from desktop) Then I get the error message, I think my syntax is just not correct: Error is: Not a valid boolean (translated from Dutch error message). I think I make an error copying from device (\My Documents\LGXVRDMU.CSV) to my desktop: C:\downloads\ Form1.Show rapi.New1 rapi.Connect Sub Button2_Click Msgbox ("Connected") If rapi.DeviceFileExists("\My Documents\LGXVRDMU.CSV") = true Then Msgbox("File Found") rapi.CopyFileFromDevice2("\My Documents\LGXVRDMU.CSV","C:\downloads") End If End Sub |
|
|||
|
Quote:
for exemple I have a secret file and on clik botton1 (using network) lib the file is copied from de device to the pc. exemp: FileCopy("pass.ert","c:\pass.ert") - but using the network O I make this?????? sory mi inglish |
|
||||
|
See the FileTransfer example: http://www.basic4ppc.com/Downloads.html
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Web browser for desktop and device | agraham | Additional Libraries | 42 | 09-11-2008 07:37 AM |
| FileSize(file) brings up error on device - but not on Desktop | TWELVE | Questions & Help Needed | 7 | 05-10-2008 02:54 PM |
| Using RAPI library to transfer database from device to desktop | mozaharul | Questions & Help Needed | 4 | 04-01-2008 08:55 AM |
| Different behaviour DeskTop and Device | HARRY | Questions & Help Needed | 2 | 02-22-2008 12:36 PM |
| Problems using rapi to send files to desktop | sunnyboyj | Questions & Help Needed | 4 | 01-06-2008 05:40 AM |