motorcross
Goto Top

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.

Username [$ usname,40]
So und jetzt bekomme ich irgendwie diese Variable %usname% nicht in meine Batch.
Kann mir jemand helfen?
Gruß Motorcross

Content-Key: 121927

Url: https://administrator.de/contentid/121927

Printed on: April 19, 2024 at 02:04 o'clock

Mitglied: 77559
77559 Aug 04, 2009 at 08:44:25 (UTC)
Goto Top
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:
                       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
Member: Biber
Biber Aug 10, 2009 at 08:36:27 (UTC)
Goto Top
Moin Motorcross,

ich versteh ja, dass Du vielleicht ein bisschen eingeschnappt bist wegen Lordchens einleitendem Satz, aber...
Könntest Du bitte dennoch zeitnah ein Feedback geben oder (wenn es Dir schwerfällt, "Danke" zu sagen) wenigstens einen grünen "Erledigt"-Haken dranpappen?

Danke dafür
Biber