@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=1,4 :: 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=xReg2Inf set RoutineAuthor=MartinR set Using_work_from= set Example_call_1=%%xReg2Inf%% -h1 -s22 "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Small Fontsx--x" set Example_call_2=%%xReg2Inf%% [-h?] [-sN] "FULLKEY" "STRING[x--x]" set Example_call_3=%%xReg2Inf%% -D set text_01=Looks for registry keys whose names start with a specified string set text_02=and when found outputs entries to the INF file. Also returns the data set text_03=found in a variable %%result%% for later use by calling script. set text_04=. set text_05=Where the data contains the names of files which need to be loaded set text_06=to the recovery CD, the S switch saves the names and identifies set text_07=them with the PEBuilder folder supplied in N. This data is later output set text_08=to the INF using a call to %%xReg2Inf%% -D like in example 3 above. set text_09=. set text_10=%%xReg2Inf%% -D set text_11=Outputs data saved using the S switch above to the [SourceDisksFiles] set text_12=section of the INF file. set text_13=. set text_14= FULLKEY = Registry key where value is located set text_15=. set text_16= STRING = Opening letters of names of the values to be found. set text_17= x--x can be appended to the string to indicate that set text_18= a wildcard search is being carried out set text_19=. set text_20= -h? = Section header required in inf file set text_21= N = PEBuilder folder number for data saved for %%xReg2Inf%% -D if "%~1" == "GetHelp" goto :EOF :: ============================================= :: now done in xFUNCS.exe :: set CD_UserPersonal=%ProfileDRV%:\%_docsandsettings_%\Default User\%_mydocs_%\ :: set CD_AllUserPersonal=%ProfileDRV%:\%_docsandsettings_%\All Users\%_commondocs_%\ :: Redirect standard output to standard error (normally pointing to console) echo.&echo %* 1>&2 :: Name for the temporary file used if redirection is enabled set TempInf=RegInf.tmp "%APPs%\xFUNCs.exe" %* :: Output the temporary file if redirection applies if exist %TempInf% ( type %TempInf% del %TempInf% ) if exist PrintReatogo.tmp ( for /f %%i in (PrintReatogo.tmp) do echo %%i del PrintReatogo.tmp ) if exist "%temp%\TempLab.cmd" ( call "%temp%\TempLab.cmd" del "%temp%\TempLab.cmd" ) set text= goto :EOF