
Now to the issue of the moment: How might I use the :Format function published on this website effectively? When I pass it a string which contains more items than the number of columns in the
Code: Select all
Fmt
For example this batch file will only display the first 3 of "alcrmv alcupd bfsvc explorer fveupdate HelpPane hh HideWin InstFunc IsUninst notepad regedit SOUNDMAN twunk_16 twunk_32 winhelp winhlp32 write"
Code: Select all
:showWinExe
setlocal enabledelayedexpansion
pushd %windir%
for %%g in (*.exe) do set .exe=!.exe! %%~ng
call :Format [-15][-15][-15] %.exe%
popd
goto :eof
Result:
Code: Select all
alcrmv alcupd bfsvc
Desired result:
Code: Select all
alcrmv alcupd bfsvc
explorer fveupdate HelpPane
HelpPane hh HideWin
etc...