Autor Beitrag
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 31.07.04 19:39 
Hi,
ich habe heute die Nützlichkiet von Batch (.bat) - Dateien entdeckt.

Nun habe ich schon ein zwei Befehle eingegeben:
ausblenden Quelltext
1:
2:
@echo off
echo Bitte name eingeben:


Nun fehlt mir der Befehl, der der Batchdatei sagt, dass nun eine Benutzereingabe folgt, die aber mit [Return] vom User bestätigt werden soll.

Möglichst sollte die Eingabe des User in einer Variable gespeichert werden, damit ich diese später noch einmal nutzen kann...

thx hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 31.07.04 20:26 
ausblenden Quelltext
1:
SET /P VAR=					


Das sollte funktionieren. VAR ist eine Variable, kannst du umändern.

Greetz
hibbert Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Sa 31.07.04 20:34 
jo das ist es.

thx
hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 31.07.04 20:41 
hibbert hat folgendes geschrieben:
thx


No problem
TimonWorld
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 397



BeitragVerfasst: Di 03.08.04 22:09 
onlinehome hat folgendes geschrieben:
ausblenden Quelltext
1:
SET /P VAR=					

VAR ist eine Variable, kannst du umändern.


Und wie lese ich variablen aus in dos/cmd?
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 04.08.04 15:59 
Den Namen zwischen zwei Prozentzeichen setzen:
ausblenden Quelltext
1:
2:
3:
4:
@echo off
echo bitte namen eingeben:
set /P VAR=
echo %VAR%


raziel

_________________
JSXGraph