Batch created multiple .txt files

February 19, 2009 at 02:58:45
Specs: Windows XP
Hi i wanted to create a batch file wich will create a series of 50 .txt files wich all have the name I Love You and a ongoing number i.e I Love You.txt, I Love You 1.txt and so on.

I so far have this:
Echo I Love You>"I Love You.txt"

to create one file but how do i create more with a number?

Thanks i advance


See More: Batch created multiple .txt files

Report •


#1
February 19, 2009 at 03:47:45
Now i found a way.

And this is a nice way to say I love you to your partner hehehe


For /l %%n in (1,1,140) do echo I Love You >> "C:\Documents and Settings\USERNAME\Desktop\I LOVE YOU%%n.txt"

where it says username put the user name of the loggedin user on the computer.

And to delete all the generated .txt files:

del "I LOVE YOU"*".txt"

greets TrinXer


Report •

#2
February 19, 2009 at 05:46:58
I can think of much less geeky ways to say "I love you" to your partner.

Report •

#3
February 19, 2009 at 06:51:01
Of course there are other ways and less geeky too like just saying i love you :p

But i made this up bc when my gf is coming home i will not be there and i know she will turn on the pc and then she will find a nice desktop :p saying i love you hehe


Report •

Related Solutions

#4
February 19, 2009 at 07:41:06
> she will find a nice desktop

If that's your definition of "nice" ;-)


Report •

#5
February 19, 2009 at 07:45:12
haha yes it is, i know she will be happy to see 140 i love you.txt's.

So dont argue with me please if you dont like it then just stop trolling.

Greets


Report •

#6
February 19, 2009 at 07:57:12
klint: I can think of much less geeky ways to say "I love you" to your partner stalkee.
Fixed that for you.

EDIT: VVVV Well, you do have to admit I'm a much better toll than you.


Report •

#7
February 19, 2009 at 09:20:47
hehehe LOL 555


Report •


Ask Question