FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour copy some files from tablet
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
copy some files from tablet
Posted: Thu Jul 27, 2017 03:28 PM

Friends,

Someone have a easy routine to copy files ( dbf) from a tablet VIA USB into computer and viceversa ?

thanks

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 03:56 PM

Check out GoodSync It is for far more than what you want, but it does a great job and is very low cost ( $ 29.95 usd ) I use it for backups to multiple drives, but it can do sync between the cloud, other devices, etc. It has timers and you can have multiple routines. So, you can set it to do a daily backup to one drive and hourly backups of changed data to another, and sync between devices. It's great software, maintained and updated steadily.

https://www.goodsync.com/

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 04:23 PM

I mean from fwh application please

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 04:54 PM

Silvio, if tablet is android, yo can install this app

https://play.google.com/store/apps/deta ... rverhl=es
and shared a folder, in pc you can write backup routines (.bat or .exe) for manage files in this folder.

salu2
carlos vargas

&

Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 05:20 PM

the tablet is on Window 10
I must use the routine to copy a dbf from and to tablet
on the morning I must set the dbf into tablet and on the evening I must download dbf from tablet to pc

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 05:23 PM

I want Know why this function ( samples folder of fwh) not run good
because I cannot set the drive
I not Know wich is the drive if id e or f or g or h

function Main()

CopyFiles( { "......\lib\five.lib", "......\lib\fivec.lib", "......\lib\winapi.lib" },;
{ "......\lib\five.bak", "......\lib\fivec.bak", "......\lib\winapi.bak" } )

return nil

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 06:35 PM

Look \samples\INSTALL.PRG If it helps.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: copy some files from tablet
Posted: Thu Jul 27, 2017 08:32 PM
Silvio,

I not Know wich is the drive if id e or f or g or h


Maybe you can use the file() function to check for the existance of a drive.

Code (fw): Select all Collapse
do case
   case file("e:\..\..\lib\fivec.bak")
      cDrive:="e:"

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: copy some files from tablet
Posted: Fri Jul 28, 2017 08:11 AM

if there are two tablets linked and have different drive and the name of dbf is the same but one tablet is for one bus and the other for another bus the situation is too hard to make . I must think how make it

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: copy some files from tablet
Posted: Fri Jul 28, 2017 03:40 PM

Silvio,

That is why I suggested a separate utility. I have many folders that contain files with the same name, and I have to auto sync them with multiple devices. The GoodSync program I suggested does all of that, automatically, always syncing across any file that changed, and it is very fast. It all runs automatically and it never fails. All of this for $ 29.95 usd. It simply was not worth my time to build something.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: copy some files from tablet
Posted: Fri Jul 28, 2017 04:57 PM

thanks tim....
but I suggest to make an function to acquire the dbf from tablet directly from fwh app
If I used the app I could use your goodsync utility
but there is another people use my application and he want load the archive directly from my app

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: copy some files from tablet
Posted: Fri Jul 28, 2017 05:08 PM

I appreciate that, but you could also recommend he consider the program I mentioned. It will do so much more for him. In addition to your data files, and documents he creates, pictures he takes, etc... can all be synced across multiple devices, and each one can have it's own profile. I know this doesn't answer your question. The problem I see is that devices may be difficult to find when plugged into a network or computer. We have so many types, and they may all be seen in different ways.

Here is another consideration. You will need two controls ... one to copy to the device(s) and one to copy from them. If you trigger these from buttons, consider this:

The user presses the button to copy the files from the desktop to the tablet.
Then the user goes out and does work all day, updating the file on the tablet.
Finally, the user comes back to the office, and accidently hits the button to copy the files from the desktop to the tablet. Now all of the day's work is lost ....

The GoodSync program eliminates this because it always transfers the latest file. Also, it can be set to perform this automatically, so no button needs to be pushed.

I appreciate what you would like to do, but the user may want to consider an immediate, alternate, solution because the cost is so low. I think you can even get them a free trial.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion