Solved Create 10000 text file with DOS with text

September 5, 2011 at 12:23:48
Specs: Windows 7
Hi
Create 10000 text file with DOS with text
so filename will be 1.txt and inside of it will be "numeric1.txt"
and the next text file will be 2.txt and inside of it will be "numeric2.txt"
and the next text file will be 3.txt and inside of it will be "numeric3.txt"
and the next text file will be 4.txt and inside of it will be "numeric4.txt"
and the next text file will be 5.txt and inside of it will be "numeric5.txt"
and the next text file will be 6.txt and inside of it will be "numeric6.txt"
and the next text file will be 7.txt and inside of it will be "numeric7.txt"
and the next text file will be 8.txt and inside of it will be "numeric8.txt"
and the next text file will be 9.txt and inside of it will be "numeric9.txt"
and the next text file will be 10.txt and inside of it will be "numeric10.txt"
.
.
.
.
until the last text file will be 10000.txt and inside of it will be "numeric10000.txt"

Can you please help me with that ?

Regards


See More: Create 10000 text file with DOS with text

Report •


#1
September 5, 2011 at 13:08:55
Update for this question

How I can make it write all this lines (with same number of files and file name like above)

text start here >>>>>

@echo

cd..

cd..

cd /folder

text -u text -w numeric1.txt

<<<<<< text end here


Report •

#2
September 5, 2011 at 22:55:40
✔ Best Answer
Seems like an exercise in futility but.... Test this. For testing purposes just 10 files will be created. If you are satisfied with the outcome change 10 to 10000

@echo off
cls

if exist %temp%\trial\ (
   echo y|del %temp%\trial\*.*)     &:: For testing purposes only

for /l %%1 in (1,1,10) do (
    (
    echo.
    echo @echo
    echo.
    echo cd..
    echo.
    echo cd..
    echo.
    echo cd /folder
    echo.
    echo text -u text -w numberic%%1.txt
    echo.
    )>output_path\%%1.txt
)


Please come back & tell us if your problem is resolved.


Report •

#3
September 6, 2011 at 00:05:21
Thanks for your reply dear Wahine

it is not an exercise in futility !

I made bat file like this ; but I can not see any text files created !
Can you please tell me what should I fix here ?
Thanks

@echo

for /l %%1 in (1,1,10) do (
(
echo.
echo @echo
echo.
echo cd..
echo.
echo cd..
echo.
echo cd /folder
echo.
echo text -u text -w numberic%%1.txt
echo.
)>output_path\%%1.txt
)


Report •

Related Solutions

#4
September 6, 2011 at 00:14:25
I must change output_path
You are great ; thank you ; you are the best
God bless you
this is what I was looking for
please let me know if I can offer any thing for you
Regards

Report •

#5
September 6, 2011 at 00:55:36
this is what I was looking for
please let me know if I can offer any thing for you

Well, I need a new car and a holiday in the Seychelle Islands but your thanks is enough.

Thank you for coming back to advise of your success and apologies for my remark about the exercise in futility.

Regards

Wahine.


Please come back & tell us if your problem is resolved.


Report •


Ask Question