@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=1 :: 1=Getting Data 2=Prompts 3=Getting Files 4=Creating Files 5=General set Routine_Vers=1 set Routine_Date=2007-02-15 set RoutineName=IniGetSection2Vars set RoutineAuthor=Siegfried set Using_work_from= set Example_call_1=%%IniGetSection2Vars%% "%%Plugin%%\\AUTOHELP\Settings.ini" "Qemu" set Example_call_2=%%IniGetSection2Vars%% "%%Plugin%%\\AUTOHELP\Settings.ini" set Example_call_3= set text_01=Reads a whole section of an INI file. set text_02=Returns variables named like the data under the specified section and set to the values read there. set text_03=. set text_04=Param. 1 = Path to INI file. May be any textfile with INI structure. set text_05=Param. 2 = Section set text_06=If param 2 is empty, the entire INI will be read. NOTE, that if the same value name exists in more than one section, only the last value will win. set text_07=. set text_08=Returns "" for any value that is empty. if "%~1" == "GetHelp" goto :EOF if "%~3" == "" echo.&echo %* :: ============================================= "%APPs%\xFUNCs.exe" "IniGetSection2Vars" "%~1" "%~2" if exist "%temp%\TempLab.cmd" ( call "%temp%\TempLab.cmd" del "%temp%\TempLab.cmd" ) goto :EOF