Set Date and Time to Operacional System

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Set Date and Time to Operacional System

Post by Pablo César »

I've been in two situations that I had no other choice but CLOC DATE and TIME in the autoexec.bat and Menu_iniciar to update the internal clock of my PC. Despite having changed the battery, it did not work, did not keep the clock in the BIOS. Recently a colleague in other forum asked a little help on how to update and record such information. So remember a few routines that I had done in Clipper and decided to implement some more features. The utility can set the date and time:

1. Manually by typing or by clicking the date and time fields
2. Obtaining such information from a network terminal, and can select one among the many who are connected
3. Get the official date and time (Brasilia time zone) through website

In such situations, the program checks if the selected date and time are not older than the last record, asking if confirming such inconsistencies. It also has an option that allows the application to place the program in msconfig (in Windows registry, start section) so that every time you turn on the computer go through the application.

I managed to write this utility for the purpose of offering to all, serving as learning. I rely on examples from the Roberto Lopez, MiniGUI Grigory and Marcelo Torres. I found some troubles to compile modules with Network and Internet, maybe some inconsistency in the declaration of environment configuration. But I have already correct in this new version, I have used NET VIEW system_command also to compatibilize with Win98.

Well I hope I have contributed to expand knowledge and encourage colleagues to the development and contribution altruistically.

P.S. - Sorry this utility is still in portuguese (I think many will know what is about) but if someone belive necessary, I can translate in English.

- File removed, because it is a new version in last message of this post
Last edited by Pablo César on Tue Jan 17, 2012 6:57 pm, edited 5 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Set Date and Time to Operacional System

Post by bpd2000 »

Excellant
English version pl.
BPD
Convert Dream into Reality through HMG
User avatar
fchirico
Posts: 324
Joined: Sat Aug 23, 2008 11:27 pm
Location: Argentina

Re: Set Date and Time to Operacional System

Post by fchirico »

Thanks Pablo!

Excelent!
Saludos, Fernando Chirico.
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Set Date and Time to Operacional System

Post by Rossine »

Pablo,

Excelent sample :D

Thanks for sharing,

Rossine.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Set Date and Time to Operacional System

Post by esgici »

Hola Pablo
Pablo César wrote: I can translate in Enlgish.
We are waiting :?

Saludos

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: Set Date and Time to Operacional System

Post by Pablo César »

Thank you of all you ! Your enthusiastic words, give a extra forces...

The program it´s quite ready, but are still some little errors. On monday I will post a new version but now I am going to "Ilha do Mel" to pass the week end.

Image

Good week end for all of you !!!
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Set Date and Time to Operacional System

Post by Rathinagiri »

Bon voyage friend!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
mol
Posts: 3720
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: Set Date and Time to Operacional System

Post by mol »

I've started snowboard season yesterday...

Have a nice week end, friends!
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Re: Set Date and Time to Operacional System

Post by Pablo César »

Thank you all. It was wonderfull, pure ECO life here there are many nature conservation, nice for couple of days. Now returning to developement demands.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Set Date and Time to Operacional System

Post by Pablo César »

Ready now version 3 also is avaliable in English but would it be very easy to add others languages. See files .Lng and I hope all enjoy it !

Now this utility has option to change the language (Portuguese / English). It was embellished and has some extra functions it serves for learning. See the main screen looks like this:

Image
Last edited by Pablo César on Fri Jan 20, 2012 10:38 am, edited 3 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply