If I have 35 characters that I need to assign tokens to, I will need to use lower case and upper case. How do I treat the upper case ASCII characters if I already use all of the lower case ones? I've gotten to 26 with the lower case alphabet but when I added the three Upper case ASCII's it outputs A|B|C|...let me explain.
Here is code:
@ECHO OFF
SETLOCAL
SET "sourcedir=C:\Users\aborgetti\Desktop\Pipe Delimiter Project"
SET "destdir=C:\Users\aborgetti\Desktop\Pipe Delimiter Project"
(
FOR /f "tokens=1-29delims=|" %%a IN ('TYPE "%sourcedir%\test.txt"') DO (
ECHO(^|%%a^|%%b^|%%c^|%%d^|%%e^|%%f^|%%g^|%%h^|%%i^|%%j^|%%k^|%%l^|%%m^|%%n^|%%o^|%%p^|%%q^|%%r^|%%s^|%%t^|%%u^|%%v^|%%w^|%%x^|%%y^|%%z^|%%A^|%%B^|%%C^|
)
)>"%destdir%\newfile.txt"
The last three %%A^|%%B^|%%C^| will not convert to the item I am assigning to them. Anyone know why? and what I can do to get more than 26 tokens?
UPDATE
Here is where I'm at I know I have some syntax off, but I think in general it's there. any help?
@ECHO OFF
SETLOCAL
SET "sourcedir=C:\Users\aborgetti\Desktop\Pipe Delimiter Project"
SET "destdir=C:\Users\aborgetti\Desktop\Pipe Delimiter Project"
SET str="1|2|#|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35"
(
FOR /f "tokens=1-25* delims=|" %%a IN ('TYPE "%sourcedir%\test.txt"') DO (
FOR /F "TOKENS=1-10 DELIMS=|" %%a in ("%%z") do (
ECHO(^|%%a^|%%b^|%%c^|%%d^|%%e^|%%f^|%%g^|%%h^|%%i^|%%j^|%%k^|%%l^|%%m^|%%n^|%%o^|%%p^|%%q^|%%r^|%%s^|%%t^|%%u^|%%v^|%%w^|%%x^|%%y^|%%z^|%%A^|%%B^|%%C^|
)
))>"%destdir%\newfile.txt"