Username in Logon-Skript - Case Sensitive
Hallo!
Ich habe ein blödes Problem in meinem Logon-Skript:
if %username% == Administrator goto XYZ
--> Das funktioniert - manchmal. Loggt sich der Unser mit "administrator" ein statt mit "Administrator", funktioniert der Abzweig nicht.
Könnt ihr mir sagen, wie ich eine if-Abfrage in einer Batchdatei unabhängig von der Groß-/Kleinschreibung ausführe?
Vielen Dank für eure Hilfe!
Gruß
Phil
Ich habe ein blödes Problem in meinem Logon-Skript:
if %username% == Administrator goto XYZ
--> Das funktioniert - manchmal. Loggt sich der Unser mit "administrator" ein statt mit "Administrator", funktioniert der Abzweig nicht.
Könnt ihr mir sagen, wie ich eine if-Abfrage in einer Batchdatei unabhängig von der Groß-/Kleinschreibung ausführe?
Vielen Dank für eure Hilfe!
Gruß
Phil
Please also mark the comments that contributed to the solution of the article
Content-Key: 192827
Url: https://administrator.de/contentid/192827
Printed on: April 24, 2024 at 22:04 o'clock
3 Comments
Latest comment