NOMBRE DEL EQUIPO
Moderator: Rathinagiri
NOMBRE DEL EQUIPO
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.
En este caso el Nombre es ... ROSITA
Agradezco de antemano por su valiosa ayuda.
Louis.
- Attachments
-
- NOMBRE DEL EQUIPO.jpg (43.25 KiB) Viewed 4250 times
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: NOMBRE DEL EQUIPO
Code: Select all
#include <hmg.ch>
PROC MAIN()
MsgBox( GETE( "COMPUTERNAME" ) )
RETU
Viva INTERNATIONAL HMG 

Re: NOMBRE DEL EQUIPO
Thank You very much Mr. Esgici
Very kind of you !

Very kind of you !
Re: NOMBRE DEL EQUIPO
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
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
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: NOMBRE DEL EQUIPO
Sorry, no understanding, no ideaLOUIS wrote:Excuse me Mr Esgici, but my problem is on ...

Happy HMG'ing

Viva INTERNATIONAL HMG 

- srvet_claudio
- Posts: 2220
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: NOMBRE DEL EQUIPO
En HMG existen las funciones: GetUserName, GetComputerName, SetComputerName
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: NOMBRE DEL EQUIPO
Thank to reminder Dr. Introduced in HMG 3.2.srvet_claudio wrote:En HMG existen las funciones: GetUserName, GetComputerName, SetComputerName
Viva HMG, viva Dr. Soto

Viva INTERNATIONAL HMG 

Re: NOMBRE DEL EQUIPO
Sorry, I'm using 3.0.46 it best for me 

-
- Posts: 684
- Joined: Tue Jun 04, 2013 6:33 pm
- Location: Argentina
Re: NOMBRE DEL EQUIPO
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
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
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: NOMBRE DEL EQUIPO
+1EduardoLuis 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
Viva INTERNATIONAL HMG 
