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:02

0/10

Name: Anonymous 2009-06-23 3:53

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

Name: Anonymous 2009-06-23 4:53

this makes me sex

Name: Anonymous 2009-06-23 6:16

What about I am list?

Name: Anonymous 2009-06-23 11:44

>>3
Thank you, but I am having trouble. The output is either @echo off 4 times, or @echo on 4 times.

Name: Anonymous 2010-11-03 2:42

Name: Anonymous 2010-11-14 14:21

Name: Anonymous 2011-01-31 19:57

<-- check em dubz

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