xGhost4000x

Distinguished
Jan 7, 2009
39
0
18,530
Thanks for the help on the last one guys, here is what I have:


cd /d C:\
for /F "delims=\ tokens=3" %%G IN ('echo %userprofile%') DO set AA=%%G
for /F "delims=abcdefghijklmnopqrstuvwxyz tokens=1,2" %%G IN ('echo %AA%') DO set BB=%%G
if exist "Documents and Settings" set doc=Documents and Settings
if exist "Users" set doc=Users
echo "%homedrive%\%doc%\%BB%*"
pause

I want to take the first 2 letters from the %AA% but the script only takes the first letter, I can also make it take all letters very easily, but that's not what i want.... Any help?