Page 1 of 2
NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 5:12 pm
by LOUIS
Hola Estimados Amigos, tengo otra pregunta, qué instrucción debo escribir para capturar el "Nombre del Equipo" ?
En este caso el Nombre es ... ROSITA
Agradezco de antemano por su valiosa ayuda.
Louis.
Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 6:24 pm
by esgici
Code: Select all
#include <hmg.ch>
PROC MAIN()
MsgBox( GETE( "COMPUTERNAME" ) )
RETU
Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 6:39 pm
by LOUIS
Thank You very much Mr. Esgici
Very kind of you !
Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 7:39 pm
by LOUIS
Excuse me Mr Esgici, but my problem is on ...
En el Equipo Principal llamado SERVER está el EXE dentro de su carpeta y cuando se llama al Programa en el Server,
da como Nombre del Equipo = SERVER , pero cuando se llama al Programa desde un PC de Usuario con su ícono de Acceso Directo al Servidor,
da como Nombre del Equipo = ROSITA
Sin embargo, el Nombre del Equipo que me interesa capturar, es solo el del Servidor, es decir SERVER aunque se ejecute en otro PC.
Cómo se haría ?
De antemano nuevamente muchas Gracias.
Louis
Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 7:55 pm
by esgici
LOUIS wrote:Excuse me Mr Esgici, but my problem is on ...
Sorry, no understanding, no idea
Happy HMG'ing

Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 9:03 pm
by srvet_claudio
En HMG existen las funciones: GetUserName, GetComputerName, SetComputerName
Re: NOMBRE DEL EQUIPO
Posted: Sat Aug 22, 2015 9:14 pm
by esgici
srvet_claudio wrote:En HMG existen las funciones: GetUserName, GetComputerName, SetComputerName
Thank to reminder Dr.
Introduced in HMG 3.2.
Viva HMG, viva Dr. Soto

Re: NOMBRE DEL EQUIPO
Posted: Sun Aug 23, 2015 5:23 am
by LOUIS
Sorry, I'm using 3.0.46 it best for me

Re: NOMBRE DEL EQUIPO
Posted: Mon Aug 24, 2015 12:52 pm
by EduardoLuis
Hi Louis:
Just a suggestion.-
HMG is allways growing, so new functions are added continuoly for best improvements of your app.-
If you kepp working with HMG 3.046 ( now a too old version ), you are loosing lots of new tools that may become more powerfull any of your app.-
With regards.
Eduardo
Re: NOMBRE DEL EQUIPO
Posted: Mon Aug 24, 2015 3:22 pm
by esgici
EduardoLuis wrote:Hi Louis:
Just a suggestion.-
HMG is allways growing, so new functions are added continuoly for best improvements of your app.-
If you kepp working with HMG 3.046 ( now a too old version ), you are loosing lots of new tools that may become more powerfull any of your app.-
With regards.
Eduardo
+1