@ECHO OFF ECHO ------------------------------------------------------------------------------- ECHO Read in XiV IP address and frame serail number ECHO Call subroutine to create and execute XiV get config command ECHO ------------------------------------------------------------------------------- ECHO DEL C:\scripts_out\srm_login.txt echo **New-Log-File** > C:\scripts_out\srm_login.txt SET IN_PATH="C:\scripts\xiv_frame_list.txt" For /f "usebackq tokens=1-2 delims=," %%a in (%IN_PATH%) DO CALL :getxiv %%a %%b GOTO:EOF :getxiv echo ---- Executing config_get command for array %2 --- >> C:\scripts_out\srm_login.txt "C:\Program Files (x86)\IBM\Storage\XIV\XIVGUI\xcli" -m %1 -u srmadmin -p W0nderfu1 config_get echo ---- Completed commands for array %2 --- >> C:\scripts_out\srm_login.txt echo >> C:\scripts_out\srm_login.txt GOTO:EOF