To multiply strings, you use the multiplication operator shown in the code that follows. This is a cool trick that I have used for years. A comment by JV mentioned that you could multiply letters. This blog generated a decent number of comments. Although I do not respond to every comment, I do read them, and I would like to respond to all the comments, but I have a tendency to get bogged down at times, and it precludes me from responding to comments.Īnyway, a little over a month ago, I wrote a pretty cool blog: Use PowerShell and ASCII to Create Folders with Letters. One of the things I really enjoy doing is reading the comments that are posted by various people on the Hey, Scripting Guy! Blog.
Microsoft Scripting Guy, Ed Wilson, is here. Summary: Create a Windows PowerShell function that accepts pipelined input and creates a variable length underline that uses various characters.