mapping network drive inside application -is it possible?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

edk
Posts: 140
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland
Has thanked: 39 times
Been thanked: 77 times

Re: mapping network drive inside application -is it possible?

Post by edk » Wed May 10, 2017 9:31 am

+1
Indeed, as always.

User avatar
vagblad
Posts: 93
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece
Has thanked: 5 times
Been thanked: 10 times

Post by vagblad » Wed May 10, 2017 10:38 am

Thanks a lot, Krzysztof!

I really appreciate the msdn links as well. Thanks a lot.
Vagelis Prodromidis
Email: vagblad@gmail.com, Skype: vagblad

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 176 times

Post by Pablo César » Wed May 10, 2017 12:28 pm

mol wrote:
Tue May 09, 2017 1:32 pm
Does anybody know if exists harbour function to map network drive inside application?
For mapping... have you test this?

NetRedir
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein

franco
Posts: 186
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Wed May 10, 2017 5:21 pm

I have a working pos system Rewritten from my dos pos. Many users.
I have a new thought as I have advisers to build system for the cloud.
I do not believe in running business pos on the internet. When it breaks everything stops.
One of the main reason is table backup.
Every day end or shift end or after reindexing tables, I would like to backup tables automatically to my google drive from inside program.
Has anyone thought of, or done this before. This might relate to this topic. Also I see google has a shared drive now available.
This also could be a good place to put a small exe program with over stock or out of date items that my client has for sale that he
could put here for other associates in the same business could view and possibly buy. (similar to a web site)
Any Thoughts Thanks, .......... Franco ;)

trmpluym
Posts: 192
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Tue May 16, 2017 6:49 am

Why not zip the data and mail it to a Gmail account ?

User avatar
dragancesu
Posts: 438
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 3 times
Been thanked: 58 times

Post by dragancesu » Tue May 16, 2017 7:53 am

@franco

Look https://www.lifewire.com/free-backup-so ... ls-2617964

You have many backup programs that are working well
my favorite BackUp Maker
I did not need to send data in the cloud or drive google,
but I think the backup to external or network drive is good solution

Cloud backup

Look https://www.lifewire.com/free-online-ba ... ns-2625187

franco
Posts: 186
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Sun May 21, 2017 10:29 pm

Thank you for responding
Sorry I`ve been really busy. I will check these out.
Franco

franco
Posts: 186
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Mon May 22, 2017 6:05 pm

Is it possible to zip files and email them to yourself in hmg.
My idea in my pos system is to at each dayend when I finalize sales for day. when finished copy tables and mem files to a backup folder.
At this point it would be nice to zip and email them to myself. In my main folder of my system I have a field where I can set a email address.
I have not done ant emailing from hmg yet.
Any help much appreciated.
Franco

trmpluym
Posts: 192
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 4 times
Been thanked: 11 times

Post by trmpluym » Mon May 22, 2017 7:15 pm

Franco,

You can use this example for mailing:

Code: Select all

#include "hmg.ch"

cToSend := "recipient@gmail.com"

cBodySend := "Hi there!" + CRLF + ;
   "This is a text of mail (body)" + CRLF + CRLF + ;
   "       Sincerely yours,     Theo"

lRezSend := ;
   Hb_SendMail( ;
   "mail.provider.com", ;                  // SMTP server (IP or DNS-name)
25, ;                                               // SMTP port
"sender@test.com", ;                       // cFrom
cToSend, ;                                      // aTo: string or array of strings
, , ;                                                // aCC, aBCC
cBodySend, ;                                  // cBody
"=== This is Subject! ===", ;            // cSubject
, ;                                                  // aFiles (array of attachments - if you need)
"gritest", ;                                      // cUser
"gritest", ;                                      // cPass
"26.186.253.164", ;                         // POP3 server
3, ;                                                // priority (3 = Normal)
.F., .F., ;                                       // no lRead, no lTrace,
.F., .T., ;                                       // yes lPopAuth, no autentication
500, ;                                            // timeout 0.5 sec (default 20000 = 20 sec )
"" ;                                                // cReplyTo
)
For ZIP there is a nice demo:

C:\hmg.3.4.4\SAMPLES\Miscellaneous\ZIP

Theo

franco
Posts: 186
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Mon May 22, 2017 8:17 pm

Thanks Theo,
I`ll go over this and try.
Let you know how I make out.
Franco

Post Reply