Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

CMD variables

Name: Anonymous 2009-06-23 3:00

I've forgotten a bit about CMD, anybody know how I could save variables to a .txt file then call then into an if statement.

The current script
@echo off
if not defined 1 (
    goto echo1
)
if not defined 2 (
    goto echo2
)
if not defined 3 (
    goto echo3
)
if not defined 4 (
    goto echo4
)

:echo1
set /p 1 = "What is the first program in you're list?: "

:echo2
set /p 2 = "What is the second program in you're list?: "

:echo3
set /p 3 = "What is the third program in you're list?: "

:echo4
set /p 4 = "What is the fourth program in you're list?: "
pause

Name: Anonymous 2009-06-23 3:53

(echo %1%
echo %2%
echo %3%
echo $4$) > out.txt

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List