Overclock.net banner

1 - 3 of 3 Posts

·
Registered
Joined
·
1,515 Posts
Discussion Starter #1
Hello,

Im making a simple batch file...
basically i want to get some information for the user eg.

set /p NAME= Name:
set /p AGE= Age:
set /p FROM= Where you From:

after this, i would like it to create a batch file in the current directory like this:

@echo off
title Your Stuff
color f0
cls
Echo your name is : %NAME%
echo Your Age is : %AGE%
echo You Are From: %FROM%
echo.
PAUSE
 

·
Registered
Joined
·
1,555 Posts
Does it have to be a batch file for any particular reason? why not an .exe? or a batch file that calls an .exe? lol
 

·
Registered
Joined
·
255 Posts
@echo off
set /p NAME= Name:
set /p AGE= Age:
set /p FROM= Where you From:
echo @echo off >>newfile.bat
echo title Your Stuff >>newfile.bat
echo color f0 >>newfile.bat
echo cls >>newfile.bat
echo Echo your name is : %NAME% >>newfile.bat
echo echo Your Age is : %AGE% >>newfile.bat
echo echo You Are From: %FROM% >>newfile.bat
echo echo. >>newfile.bat
echo PAUSE >>newfile.bat
 
1 - 3 of 3 Posts
Top