Autor Beitrag
Andi1982
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 497

WinXP HE
D6 Enterprise
BeitragVerfasst: Mi 18.12.02 14:05 
Hallo,

ich habe ein Programm das nur auf Windows NT eingesetzt wird. Es soll unter anderem den Benutzernamen anzeigen mit dem man sich im Windows-Netzwerk (gleich nach dem Hochfahren) angemeldet hat. Irgendwo muss der doch in einer Systemvariablen stehen.

Kann mir da jemand weiterhelfen :?:

Gruss Andi!

_________________
Solange die Bombe tickt ist alles in Ordnung, erst wenn sie damit aufhört wird es problematisch...
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mi 18.12.02 14:38 
Der steht in einer der Systemvariablen, wenn Du mal in der MS-DOS Eingabeaufforderung den Befehl set eingibst, kannst Du es herausfinden.
Savage
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 110



BeitragVerfasst: Mi 18.12.02 14:44 
ich könnte mir vorstellen, dass der UserName in der Registry gespeichert wird. Müsstest also mal in der Registry nach den aktuellen User suchen und dir dann den Pfad dahin merken und mit TRegistry dann über Delphi auslesen.

MfG
Savage
Andi1982 Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 497

WinXP HE
D6 Enterprise
BeitragVerfasst: Mi 18.12.02 14:56 
@bis11 Du hast recht, da steht USERNAME: U122229

Aber wie komm ich mit Delphi an diese Variable ran??? Hab vorher noch nie auf Systemvariablen zugegriffen.

Gruß Andi

_________________
Solange die Bombe tickt ist alles in Ordnung, erst wenn sie damit aufhört wird es problematisch...
coldermoto
Hält's aus hier
Beiträge: 3



BeitragVerfasst: Mi 18.12.02 22:35 
Den atuellen User (Netzuser) findest du hier.
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Mi 01.01.03 16:50 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 12:59, insgesamt 1-mal bearbeitet
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Mi 01.01.03 23:14 
@Leathl: Hast Du Dir mal den Link, den coldermoto gepostete hat, angeschaut? :shock:

Gruß
TINO
Leathl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Do 02.01.03 00:09 
---


Zuletzt bearbeitet von Leathl am So 16.08.09 12:59, insgesamt 1-mal bearbeitet
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Do 02.01.03 09:14 
stimmt :-)