1.

Solve : Creating within a Batch File?

Answer»

In order to help do some error trapping I require the ability to create a file from within a .BAT file.

Tried looking at the usual DOS commands and cannot FIND one that allows you to create a file.

Any ideas would be Great.

Thx.take a look at ">" and "copy" for file creations.
this will work for what I think you want to do
make a batch file CALLED,  makefile.bat

echo off
cls

echo  HIT the enter key when you are finished
echo  then hit the f6 function key
echo  then enter
echo   the file formed here is called   myfile
echo  you might want to RENAME it  or else next time
echo you RUN this it will be overwritten

copy con  myfile



Discussion

No Comment Found