Einzelnen Beitrag anzeigen
Alt 07.08.2005, 15:48   #13
flinx
Inventar
 
Registriert seit: 08.04.2001
Beiträge: 3.101


Standard

Upps str vergessen :
Code:
D:\dos>type variable.txt
Variable1=hallo
Variable2=etwas
Variable3=nix
D:\dos>type variable.bat
@echo off
for /f "tokens=1,* delims==" %%i in ('findstr "Variable1" .\variable.txt') do (
echo %%i
set z=%%j
echo %z%
)
D:\dos>variable
Variable1
hallo
Zu for: schau dir mal in der Windows Hilfe die Zusatzmöglichkeiten zum for Befehl an.
flinx ist offline   Mit Zitat antworten