Search found 21 matches: computername

Searched query: computername

by Jack
Thu Oct 31, 2024 9:47 am
Forum: FiveWin for Harbour/xHarbour
Topic: RDS (Remote Desktop) and FW programming
Replies: 10
Views: 1871

Re: RDS (Remote Desktop) and FW programming

... GETENV( 'SESSIONNAME' )
winfo:=winfo+CRLF+"<BR>TEMP:"+GetEnv("TEMP")
winfo:=winfo+CRLF+"<BR>TMP:"+GetEnv("TMP")
winfo:=winfo+CRLF+"<BR>USERNAME:"+GetEnv( "USERNAME" )
winfo:=winfo+CRLF+"<BR>WNETUSERNAME:"+WNetGetUser()
winfo:=winfo+CRLF+"<BR>COMPUTERNAME:"+GetEnv( "COMPUTERNAME" )

Philippe
by ukoenig
Sat Aug 17, 2019 6:36 am
Forum: FiveWin for Harbour/xHarbour
Topic: Autostart on workstations with defined config-settings ?
Replies: 1
Views: 573

Autostart on workstations with defined config-settings ?

... maybe a solution ? ( Alarm.exe is installed on the server )

http://forums.fivetechsupport.com/viewtopic.php?f=3&t=27576&p=153877&hilit=computername#p153877
http://forums.fivetechsupport.com/viewtopic.php?f=3&t=30839&p=177539&hilit=computername#p177539

how it works in short

The desktop ...
by Jack
Fri Jun 05, 2015 2:06 pm
Forum: FiveWin for Harbour/xHarbour
Topic: REMOTE DESKTOP
Replies: 2
Views: 880

REMOTE DESKTOP

When i execute an application with Remote Desktop (TS) ,
the function GetEnv( "COMPUTERNAME" ) return the NAME of the SERVER and not the name of the workstation that execute Remote Desktop .

How to know this name ?

Thanks
by cnavarro
Sun Nov 03, 2013 9:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Local INI file
Replies: 9
Views: 3341

Re: Local INI file

Boris
And Section?
GetEnv( "COMPUTERNAME" ) + "_" + GetEnv( "USERNAME" )
by Rick Lipkin
Wed Sep 26, 2012 4:33 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Manifest file to elevate User rights to Admin
Replies: 1
Views: 699

Manifest file to elevate User rights to Admin

... across this manifest file.


This works for me but it prompts for the user password.

Code:

cStrg := "runas /noprofile /user:" + GetEnv( "COMPUTERNAME" ) + "\" + GetEnv( "USERNAME" ) + " TELNET"
winexec( cStrg )


@Rick: when you use winexec waitrun etc... it seems you loose elevated privileges ...
by Gale FORd
Mon May 28, 2012 5:29 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Copy to USB? Argox/Zebra
Replies: 8
Views: 1949

Re: Copy to USB? Argox/Zebra

... 1. Bring up printer properties and Share printer.
2. Create batch file with the following contents.
net use lpt1 /delete
net use lpt1 \\%computername%\PRINTERSHARENAME /persistent:yes
rem replace PRINTERSHARENAME with the name you used.
3. Create link to batch file in startup folder ...
by hmpaquito
Tue Dec 20, 2011 8:42 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Impresoras y estaciones de trabajo
Replies: 14
Views: 4076

Re: Impresoras y estaciones de trabajo

... del s.o. Aunque eso puede ser un mal menor.
A mi me parece que la mejor solucion es buscar un identificador unico en la red, llamese computername, mac address o el que sea y luego ya una tabla que contenga id estacion/ documento/ impresora/ preview/ printer dialog.

En mi experiencia, el ...
by Carles
Sat Jul 16, 2011 9:01 am
Forum: FiveWin para Harbour/xHarbour
Topic: MyRpt - Diseñador de Reportings - En desarrollo :-)
Replies: 132
Views: 44372

Re: MyRpt - Diseñador de Reportings - En desarrollo :-)

Hola

Nueva version v0.409

http://code.google.com/p/fivewin-contri ... 1310806811

v.0409
------
+ Add Specials Items: Page xx of yy, ComputerName, UserName, Date Report,
TimeStamp,... -> Check (45) FuncItem.prg
+ Check ProdList.prg to see special item : Page xx of yy
by Armando Picon
Fri Jun 25, 2010 10:47 pm
Forum: FiveWin para Harbour/xHarbour
Topic: S.O.S.: Error 0x23
Replies: 11
Views: 3806

S.O.S.: Error 0x23

... make -fcompila.rmk -p
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland

Macros:
PIPEHANDLE = 0
.path.OBJ = .\obj
USERDOMAIN = PAPA
COMPUTERNAME = PAPA
COMMONPROGRAMFILES = C:\Archivos de programa\Archivos comunes
.path.CH = D:\fwh712\include;D:\fwh712\xhb712\include
MAKEFLAGS = l -o -p ...
by hmpaquito
Fri Jul 03, 2009 2:02 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Cómo saber que usuario esta usando la aplicación?
Replies: 9
Views: 3367

Re: Cómo saber que usuario esta usando la aplicación?

... a ver:

PSEUDOCODIGO para hacer un fichero de texto como bloqueo:

nHandle:= FCreate(CODIGO_USUARIO+ ".log", MODO COMPARTIDO)
fwrite(nhandle, computername())

Si queremos saber si CODIGO_USUARIO esta conectado solo es necesario mirar si existe su log y si existe entonces intentar abrirlo en ...
by Maurizio
Tue Jun 30, 2009 6:55 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to monitor a network directory?
Replies: 17
Views: 5006

Re: How to monitor a network directory?

Hello Otto

1 . Check if the wireless is ON

FOR nX := 1 TO 10
inetinit()
aIpDNS:=InetGetHosts(Getenv("ComputerName"))
inetcleanup()
IF len(aIpDNS) >= 1
IF aIpDNS[1] == "127.0.0.1"
::lRete := FALSE
ELSE
::lRete := TRUE
exit
ENDIF
ELSE
::lRete := FALSE
ENDIF
sleep(200)
NEXT

2 ...
by Erick Almanza
Sat Apr 04, 2009 12:58 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Como hacer una impresion al puerto serial ?
Replies: 3
Views: 1014

Re: Como hacer una impresion al puerto serial ?

... 0
::lAnsiToOem := .T.
::cPort := cPort + If( ! "." $ cPort .and. ! "\\" $ cPort, ".PRN", "" ) // considers the port can be a network route (\\computername\sharename)
::hDC := -1 // FCreate( ::cPort ) moved down, after port checking is done
::LastError := 0
::lFile := ! ( Left( cPort, 3 ) == "LPT ...
by Lautaro
Wed Dec 10, 2008 8:14 pm
Forum: FiveWin para Harbour/xHarbour
Topic: ayuda plisss !!!!!!!! obtener datos del equipo(nombre)
Replies: 2
Views: 623

Hola,

Prueba con :

// Nombre Equipo

cEquipo:=getenv("COMPUTERNAME")

// Nombre usuario

cUsuario:=getenv("USERNAME")


Atte.,

Lautaro Moreira
by Lautaro
Sun Dec 07, 2008 1:35 am
Forum: FiveWin for Harbour/xHarbour
Topic: Computer/Workstation name
Replies: 5
Views: 1329

Hello,

You can try this :


cName:=getenv("COMPUTERNAME")


this it's ok in Windows Vista Busines.


Atte.,

Lautaro Moreira


Pd. : Sorry for my bad english
by JOSEMAR
Thu Nov 27, 2008 6:23 pm
Forum: FiveWin para Harbour/xHarbour
Topic: una pequeña duda
Replies: 5
Views: 2434

EN LA LINEA DE COMANDO DEL MSDOS DA SET Y TE DARA UNA LISTADE VARIABLES Y UTILIZANDIO Getenv("computername") EN TU PROGRAMA POR EJEM. SE PUEDEN HACER ALGUNAS COSAS EN FIN A LOMEJOR SE TE OCURRA ALGO.