Computing.Net > Forums > Programming > Batch File to Make another Batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch File to Make another Batch

Reply to Message Icon

Name: Lamez
Date: February 1, 2007 at 21:00:12 Pacific
OS: Windows XP Pro
CPU/Ram: 1Gb
Product: Custom
Comment:

Hi Guys,

Is there a way I can make a batch file make another batch file with a script?

I have already got:

\>pw.bat

now how can I make it write the script?

Thanks =P

I build Custom Computers And Write Software



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: February 1, 2007 at 22:40:59 Pacific
Reply:

"\>pw.bat"

OK I give up. What is that?


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 2
Name: Lamez
Date: February 2, 2007 at 08:38:17 Pacific
Reply:

Ok I figuerd it out!!

Here is what I have:

@ECHO OFF

color a

SET/p file=Type The File's Name:^>


ECHO @ECHO OFF >> %file%.bat

ECHO COLOR A >> %file%.bat

ECHO SET/P usr=Enter Username: >> %file%.bat

ECHO SET/P pas=Enter Password: >> %file%.bat

ECHO ECHO Username=: %usr% >> log.txt >> %file%.bat

ECHO ECHO Password=: %pas% >> log.txt >> %file%.bat

ECHO CLS >> %file%.bat

ECHO COLOR C >> %file%.bat

ECHO ECHO Your Username: "%%usr%%" >> %file%.bat

ECHO ECHO Your Password: "%%pas%%" >> %file%.bat

ECHO ECHO. >> %file%.bat

ECHO PAUSE >> %file%.bat

I build Custom Computers And Write Software


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Create Table SQL command ... increase scroll back for ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch File to Make another Batch

Batch File To Delete Line www.computing.net/answers/programming/batch-file-to-delete-line/15539.html

Simple Batch ? - Txt File to Var www.computing.net/answers/programming/simple-batch-txt-file-to-var/14543.html

BAT file to open multiple windows www.computing.net/answers/programming/bat-file-to-open-multiple-windows/7513.html