NukeLed Posted August 20, 2005 Posted August 20, 2005 this is my problem,when after installing windows i automattically add oeminfo, (this is build in) but i want to put in the installation date in oeminfo.ini (persanol reseaons) This i do by hand.But i want to do this autmatically, so the date of installation is added auto so i don't have to do it myself.Can this be done? is it possible ?
oneless Posted August 20, 2005 Posted August 20, 2005 interesting thing . this can be usefull for me too .i think you need to made a small program , who read the system date , and edit oeminfo.ini , inserting system date where you want , when windows is installed , as a last task . autoit , java ... who can help with this .. ?
oioldman Posted August 20, 2005 Posted August 20, 2005 (edited) I believe this has been answered and used a vbscript to do what your after along with a version number and other details.Can't remember who wrote it mind.[edit]try thisCreate oeminfo.ini containing date of installationit might be what your after.[/edit] Edited August 20, 2005 by oioldman
NukeLed Posted August 20, 2005 Author Posted August 20, 2005 thnx this is usefull for me, i am going to try this soon.
Lau Posted August 20, 2005 Posted August 20, 2005 How I make my auto date & list all hotfixes + some text in Oeminfo.inicmdow @ /HID@ECHO OFFSET D=%SYSTEMROOT%\system32\REM delete oeminfo.ini if existsif exist "%D%oeminfo.ini" del "%D%oeminfo.ini" /qFOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51IP SET CDROM=%%decho [General] >> "%D%oeminfo.ini"echo Manufacturer=Unattendet Win. XP sp2 Pro >> "%D%oeminfo.ini"echo Model=Slim Slipstream Version >> "%D%oeminfo.ini"echo [Support Information] >> "%D%oeminfo.ini"echo Line1=Dato for installation: %date% >> "%D%oeminfo.ini"echo Line2= >> "%D%oeminfo.ini"echo Line3=Slipstreamed Hotfix:>> "%D%oeminfo.ini"echo Line4= >> "%D%oeminfo.ini"REM Line NumberSET i=5REM List quickfixes without exe extensionFor /F "TOKENS=1 delims=.exe" %%j in ( 'dir /B %CDROM%\I386\svcpack\KB*.exe' )do ( ( set kbname=%%j ) & (call :myprint) )GOTO :EOF:myprintecho Line%i%=%kbname% >> "%D%oeminfo.ini"SET /A i+=1:EOF Run at cmdlines.It´s not my work, found somewhere in this forum, just rebuilt for danish lang.
warrior1109 Posted August 20, 2005 Posted August 20, 2005 How I make my auto date & list all hotfixes + some text in Oeminfo.inicmdow @ /HID@ECHO OFFSET D=%SYSTEMROOT%\system32\REM delete oeminfo.ini if existsif exist "%D%oeminfo.ini" del "%D%oeminfo.ini" /qFOR %%d IN (c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\WIN51IP SET CDROM=%%decho [General] >> "%D%oeminfo.ini"echo Manufacturer=Unattendet Win. XP sp2 Pro >> "%D%oeminfo.ini"echo Model=Slim Slipstream Version >> "%D%oeminfo.ini"echo [Support Information] >> "%D%oeminfo.ini"echo Line1=Dato for installation: %date% >> "%D%oeminfo.ini"echo Line2= >> "%D%oeminfo.ini"echo Line3=Slipstreamed Hotfix:>> "%D%oeminfo.ini"echo Line4= >> "%D%oeminfo.ini"REM Line NumberSET i=5REM List quickfixes without exe extensionFor /F "TOKENS=1 delims=.exe" %%j in ( 'dir /B %CDROM%\I386\svcpack\KB*.exe' )do ( ( set kbname=%%j ) & (call :myprint) )GOTO :EOF:myprintecho Line%i%=%kbname% >> "%D%oeminfo.ini"SET /A i+=1:EOF Run at cmdlines.It´s not my work, found somewhere in this forum, just rebuilt for danish lang.<{POST_SNAPBACK}>I use a similar cmd file, and run it right at the end, after the defrag, before reboot, works a treat.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now