How to repeat a char in a line? (on Windows)

My brain is not working today... too hot. On Windows, how would you generate a text line with 480 of 'M' chars? I have to describe to other people how to do it on their Windows machine. So, I need simple generic way. I can't tell them to install BusyBox, Cygwin, Vim, or Python. :-) -- William

Is it always 480? Is copy and paste cheating? 480 is conveniently 30 * 16, so it's M * 10 (can most people count that high?), then Ctrl-A, Ctrl-X, Ctrl-V, Ctrl-V, Ctrl-V After that, it's Ctrl-A, Ctrl-X, Ctrl-V, Ctrl-V repeated 5 times. Should be 480 repeats. Stewart

It's 480 at the moment, but it can change. And, no, it's not cheating, as long as THEY can get it done on their Windows. Thanks for pointer to Notepad. It never occured to me. I was looking for DOS scripts. I got it to count to 480: for /L %i in (1,1,480) do echo M >> out.txt but I can find DOS equivalent to "echo -n M". -- William On Sun, Jun 26, 2016 at 02:04:33PM -0400, Stewart Russell wrote:
Is it always 480? Is copy and paste cheating?
480 is conveniently 30 * 16, so it's M * 10 (can most people count that high?), then Ctrl-A, Ctrl-X, Ctrl-V, Ctrl-V, Ctrl-V
After that, it's
Ctrl-A, Ctrl-X, Ctrl-V, Ctrl-V
repeated 5 times. Should be 480 repeats.
Stewart

On Jun 26, 2016, at 12:48, William Park via talk <talk@gtalug.org> wrote:
On Windows, how would you generate a text line with 480 of 'M' chars?
I can't tell them to install BusyBox, Cygwin, Vim, or Python. :-)
No need to install, if they are online: http://mathcs.holycross.edu/~kwalsh/python/ print("M"*480)
participants (3)
-
Peter Renzland
-
Stewart Russell
-
William Park