Search found 3 matches
- 08 Jun 2023 13:15
- Forum: DOS Batch Forum
- Topic: cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
- Replies: 5
- Views: 4245
Re: cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
I just found an old answer of dbenham in the forum of superuser... https://superuser.com/questions/629596/how-do-i-append-dynamic-number-of-spaces-at-the-end-of-a-string-in-a-batch-file @miskox: So your answer seems to be the perfect solution. ;-) I just misunderstood, that in your solution, I only ...
- 08 Jun 2023 10:05
- Forum: DOS Batch Forum
- Topic: cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
- Replies: 5
- Views: 4245
Re: cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
Thank you both for your answers. The text manipulation method is a good alternative. @miskox Is it possible to include the string length (string manipulation) from a variable to automate it? set field1=%field1:~0, 20 % to set field1=%field1:~0, %num1% % Or echo it and include the echoed result withi...
- 06 Jun 2023 06:30
- Forum: DOS Batch Forum
- Topic: cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
- Replies: 5
- Views: 4245
cmd-Terminal menu: How to iterate a number of spaces given in a variable into another variable?
Hello together, I am working on a new updating-menu in cmd-Terminal and don't know how to get my blocks "installed version", "server version" and "update-suggestion" into a semi-variable position on screen, so that it is screen-printed like it would be set in tabbed-fixed columns. The length of the ...