mapping network drive inside application -is it possible?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

edk
Posts: 909
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

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

Post by edk »

+1
Indeed, as always.
User avatar
vagblad
Posts: 160
Joined: Tue Jun 18, 2013 12:18 pm
DBs Used: MySQL,DBF
Location: Thessaloniki, Greece

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

Post by vagblad »

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: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

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

Post by Pablo César »

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: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

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

Post by franco »

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 ;)
All The Best,
Franco
Canada
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

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

Post by trmpluym »

Why not zip the data and mail it to a Gmail account ?
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

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

Post by dragancesu »

@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: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

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

Post by franco »

Thank you for responding
Sorry I`ve been really busy. I will check these out.
Franco
All The Best,
Franco
Canada
franco
Posts: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

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

Post by franco »

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
All The Best,
Franco
Canada
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

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

Post by trmpluym »

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: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

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

Post by franco »

Thanks Theo,
I`ll go over this and try.
Let you know how I make out.
Franco
All The Best,
Franco
Canada
Post Reply