copy some files from tablet

copy some files from tablet

Postby Silvio.Falconi » Thu Jul 27, 2017 3: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby TimStone » Thu Jul 27, 2017 3: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
User avatar
TimStone
 
Posts: 2946
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: copy some files from tablet

Postby Silvio.Falconi » Thu Jul 27, 2017 4:23 pm

I mean from fwh application please
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby carlos vargas » Thu Jul 27, 2017 4:54 pm

Silvio, if tablet is android, yo can install this app
https://play.google.com/store/apps/deta ... rver&hl=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)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: copy some files from tablet

Postby Silvio.Falconi » Thu Jul 27, 2017 5: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby Silvio.Falconi » Thu Jul 27, 2017 5: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby karinha » Thu Jul 27, 2017 6:35 pm

Look \samples\INSTALL.PRG If it helps.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7847
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: copy some files from tablet

Postby James Bott » Thu Jul 27, 2017 8: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: Select all  Expand view  RUN
do case
   case file("e:\..\..\lib\fivec.bak")
      cDrive:="e:"
 

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: copy some files from tablet

Postby Silvio.Falconi » Fri Jul 28, 2017 8: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby TimStone » Fri Jul 28, 2017 3: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
User avatar
TimStone
 
Posts: 2946
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: copy some files from tablet

Postby Silvio.Falconi » Fri Jul 28, 2017 4: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Re: copy some files from tablet

Postby TimStone » Fri Jul 28, 2017 5: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
User avatar
TimStone
 
Posts: 2946
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 49 guests