I’m running a batch script that calls the binary NiniteOneTrial to install a bunch of apps listed in the “applist.txt”. This works great, but I want to see if there is a way to setup a variable that prints to the screen (echo) the app that is currently being installed (per the applist.txt calls):
Basically, want to replace the %%CURRENTTASKFROMLIST%% with the app currently being installed from that list.
set CACHEPATH=\\server-01\local_apps\Ninite\netcache
set file_list=C:/ninite/applist.txt
:appinstall
for /f %%1 in (%file_list%) do (
echo . . . . . . . . . . . . . . . . [ Installing %%CURRENTTASKFROMLIST%% ]
cmd /c C:/ninite/NiniteOneTrial.exe /disableautoupdate /disableshortcuts /allusers /select %%1 /silent . /cachepath %CACHEPATH%
)
From your question and comments it sounds like you want to just use
%%1where you have%%CURRENTTASKFROMLIST%%. The%%1in the for loop will provide you with the app name that is currently being installed.