@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=IniGet set RoutineAuthor=Siegfried set Using_work_from= set Example_call_1=%%IniGet%% "%%PEroot%%\input.inf" "input" "langfile" set Example_call_2= set Example_call_3= set text_01=Reads from text files with INI structure. set text_02=. set text_03=Param. 1 = Path to INI file. May be any textfile with INI structure. set text_04=Param. 2 = Section set text_05=Param. 3 = Key set text_06=. set text_07=Returns the value as %%result%% set text_08=. set text_08=Returns "$notfound$" or "$empty$" if the file/section/key was not found or the value was empty. if "%~1" == "GetHelp" goto :EOF if "%~4" == "" echo.&echo %* :: ============================================= "%APPs%\xFUNCs.exe" "INIGET" "%~1" "%~2" "%~3" if exist "%temp%\TempLab.cmd" ( call "%temp%\TempLab.cmd" del "%temp%\TempLab.cmd" ) if "%~4" == "" echo Result is "%result%" goto :EOF