WBat Variable in Batch Datei holen
Hallo Administratoren,
ich habe mir gerade WBat besorgt und versuche gerade ein Input field zu erstellen.
Das ist mir auch einigermaßen gelungen.
So und jetzt bekomme ich irgendwie diese Variable %usname% nicht in meine Batch.
Kann mir jemand helfen?
Gruß Motorcross
Das ist mir auch einigermaßen gelungen.
Username [$ usname,40]
Kann mir jemand helfen?
Gruß Motorcross
Please also mark the comments that contributed to the solution of the article
Content-Key: 121927
Url: https://administrator.de/contentid/121927
Printed on: April 26, 2024 at 08:04 o'clock
2 Comments
Latest comment
Hallo Motorcross.
Die Anzahl der (mit etwas nachdenken/suchen selbst zu klärenden) Fragen die du generierst ist schon erstaunlich.
Wenn du die Demo.bat gründlich durcharbeiten würdest stößt du irgendwann hierauf:
Gruß
LotPings
Die Anzahl der (mit etwas nachdenken/suchen selbst zu klärenden) Fragen die du generierst ist schon erstaunlich.
Wenn du die Demo.bat gründlich durcharbeiten würdest stößt du irgendwann hierauf:
W.BAT construct
To produce variables that can be used in your batch files, a special
command construct is required. The old method of setting variables
directly (from inside a program) is not supported, because it does not
work under Windows NT/2000, and is not safe for future Windows versions.
When you want WBAT to produce variables (with box/menu/list commands),
you have to use: CALL W.BAT <command> <parameters>
instead of: WBAT .....
The file W.BAT runs WBAT.COM, and takes care of the variables.
Read W.BAT command (next page) for important information.
As an alternative, WBAT can write the SET statements to STDOUT,
for redirection to a temporary batch file.
Gruß
LotPings