NukeLed Posted August 20, 2005 Share 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 ? Link to comment Share on other sites More sharing options...
oneless Posted August 20, 2005 Share 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 .. ? Link to comment Share on other sites More sharing options...
oioldman Posted August 20, 2005 Share 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 Link to comment Share on other sites More sharing options...
NukeLed Posted August 20, 2005 Author Share Posted August 20, 2005 thnx this is usefull for me, i am going to try this soon. Link to comment Share on other sites More sharing options...
Lau Posted August 20, 2005 Share 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. Link to comment Share on other sites More sharing options...
warrior1109 Posted August 20, 2005 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now