Computing.Net > Forums > Disk Operating System > Making DOS Batch Files In a Batch File

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.

Making DOS Batch Files In a Batch File

Reply to Message Icon

Name: James
Date: May 31, 2000 at 01:22:38 Pacific
Comment:

Can anyone help?

I'm writing a DOS (in Winnt) batch file that makes another batch file. However, on one line I need to call ftp with a script file (including its path). eg

ECHO ftp -s:>ftp.bat
CHDIR >> ftp.bat
ECHO /script.scr >> ftp.bat

However, this puts the ftp command over 3lines.

How do I write this ftp.bat file so that I get all this information onto a single line?

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Little Helper
Date: May 31, 2000 at 11:10:45 Pacific
Reply:

I suggest you to use 4dos, it's an excellent Batch-Interpreter.
You only have to type ECHOS instead of echo there, and it will work..


0

Response Number 2
Name: World Library
Date: May 31, 2000 at 20:25:10 Pacific
Reply:

Hi,
If you mean like this

******************************
rather than this
******
*****
*******

Then yes. There are a collection of files in horst31.zip (qecho.com is just one) that makes it quite easy. File is only 70034 bytes in zise and I would be happy to send.

example:
copy %2 tsmp
qecho "if exist " >if1.bat
dir /b tsmp\ >file.dat
qecho "*.* " >>if1.bat
qecho "move " >>if1.bat
qecho "%2" >>if1.bat
qecho "*.* " >>if1.bat
echo tzmp\files >>if1.bat
echo toy frogs >>if1.bat

creates:
if exist *.* move *.* tzmp\files
toy frogs

Well let me know. Oh! put horst31.zip in the body...........:-)

Peace Goodwill and Happy Computing

World Library


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Making DOS Batch Files In a Batch File

Dos Batch command to re-boot a PC. www.computing.net/answers/dos/dos-batch-command-to-reboot-a-pc/3402.html

Using the Computer Name in a Batch Program www.computing.net/answers/dos/using-the-computer-name-in-a-batch-program/5560.html

DOS batch program to reset passwords ? www.computing.net/answers/dos/dos-batch-program-to-reset-passwords-/10882.html