Posted: Fri Feb 11, 2011 3:27 am Post subject: Batch file
I was wondering how to create files with batch script. I use for creating folders this(batch file has menu(input choice(if statements and then goto (folder), Creatfile etc))):
:Folder
echo Enter the name of folder to create
set folder=
set /p folder=
mkdir %folder%
Goto menu
And now i was wondering how to create files so you could enter the name of file and it would create it.
:CreateFile
echo Enter the name of file to create
set cfile=
set /p cfile=
**********
**********
Goto menu
In ******* its the code i need to create files.
And im using XP so i dont have choice command, i have set /p
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum