1.

Solve : Using Ms-dos to create?

Answer»

I am wondering if it is possible to MAKE a batch file that will create another batch file and at the same TIME write the contents of that batch file? I am semi new to ms-dos so I hope you understand.Do you mean create it on disk and also write it on SCREEN?

Like this?

@echo off
echo @echo off> batch2.bat
echo echo hello world >> batch2.bat
echo echo BYE now >> batch2.bat
echo pause >> batch2.bat
type batch2.bat
I would like to have a batch file that CREATES a seperate batch file in C:\ and I would like the seperate batch file to contain:

@echo off
echo hello world!!!
exit Well, now you know how to do it.
I guess your code does work!!! thanks!!!



Discussion

No Comment Found