Wildcards in Batch-Stringvergleich
Hallo da draußen, wie kann ich Wildcards in einer Batch-Abfage verwenden? Die Batch-Datei wird auf allen Domänenrechnern beim Login gestartet. Auf den Computer, deren Name mit "Netbook" beginnt, soll ein Programm gestartet werden.
So geht es nicht:
IF "%COMPUTERNAME%" == "netbook*" CALL u:\WriteUser.exe
Hat jemand einen Tipp? Google hat mir nicht geholfen
Gruß von der Elbe,
Winfried
So geht es nicht:
IF "%COMPUTERNAME%" == "netbook*" CALL u:\WriteUser.exe
Hat jemand einen Tipp? Google hat mir nicht geholfen
Gruß von der Elbe,
Winfried
Please also mark the comments that contributed to the solution of the article
Content-Key: 201616
Url: https://administrator.de/contentid/201616
Printed on: April 19, 2024 at 19:04 o'clock
2 Comments
Latest comment