Answer the question
In order to leave comments, you need to log in
How to make a line break in a bat file?
There is the following bat file with code
for /l %%i in (1,1,10) do echo <? phpcode ?> >%%i.php
We need to make it create files like this
for /l %%i in (1,1,10) do echo
<?
phpcode
?> >%%i.php
But I tried it and it doesn't work.
Answer the question
In order to leave comments, you need to log in
echo off
for /l %%i in (1,1,10) do (
echo ^<^?php > %%i.php
echo php code .. >> %%i.php
echo ^?^>php >> %%i.php
)
echo. >> %%i.php
(i.e. a dot at the end of echo) Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question