M
[email protected]
Guest
Here's a really simple (really! :)) batch file to illustrate my problem:
@Echo Off
SetLocal
Set Pad="%@Repeat[ ,7]"
For /L %IDX in (0,1,6) Do (
@Echo %@Left[7,%@Left[%IDX,ABCDEFG]%@UnQuote[%Pad]] ---
)
EndLocal
Quit 0
Here's the output I get:
A ---
AB ---
ABC ---
ABCD ---
ABCDE ---
ABCDEF ---
Here's the output I want (due to the same formatting issues with this website you have to pretend that the tildes are blanks):
A~~~~~~---
AB~~~~~---
ABC~~~~---
ABCD~~~---
ABCDE~~---
ABCDEF~---
Is there any way I can actually get the output I want???
@Echo Off
SetLocal
Set Pad="%@Repeat[ ,7]"
For /L %IDX in (0,1,6) Do (
@Echo %@Left[7,%@Left[%IDX,ABCDEFG]%@UnQuote[%Pad]] ---
)
EndLocal
Quit 0
Here's the output I get:
A ---
AB ---
ABC ---
ABCD ---
ABCDE ---
ABCDEF ---
Here's the output I want (due to the same formatting issues with this website you have to pretend that the tildes are blanks):
A~~~~~~---
AB~~~~~---
ABC~~~~---
ABCD~~~---
ABCDE~~---
ABCDEF~---
Is there any way I can actually get the output I want???