After a searching I saw win2k setup might not support multi-line cmdlines so I just put 'runonceex.cmd'
at t-13 stage, I see CMD window so runnonceex.cmd seems to be working, but none of the commands work after first logon.
Here's my runnonce .. Can anyone point me in a right direction? Thanks
cmdow @ /HID @echo off :RegKey :1-10 - Drivers :15-25 - System Related :26-35 - nero adobe media FOR %%i IN (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 %%i:\CDROM_NT.5 SET CDROM=%%i: SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx REG ADD %KEY% /V TITLE /D "Installing Applications" /f :REG ADD %KEY%\001 /VE /D "" /f :REG ADD %KEY%\001 /V 1 /D "%systemdrive%\none1.bat" /f :REG ADD %KEY%\002 /VE /D "" /f :REG ADD %KEY%\002 /V 1 /D "REGEDIT /S %systemdrive%\regtv1.reg" /f REG ADD %KEY%\003 /VE /D "" /f REG ADD %KEY%\003 /V 1 /D "%systemdrive%\themes.cmd" /f REG ADD %KEY%\004 /VE /D "" /f REG ADD %KEY%\004 /V 1 /D "%CDROM%\wpi\wpi.hta" /f REG ADD %KEY%\937 /VE /D "Finishing Installation 0 of 3" /f REG ADD %KEY%\937 /V 1 /D "%SystemDrive%\DPsFnshr.exe" /f REG ADD %KEY%\938 /VE /D "Finishing Installation 1 of 3" /f REG ADD %KEY%\938 /V 1 /D "%systemdrive%\none1.bat" /f REG ADD %KEY%\939 /VE /D "Finishing Installation 2 of 3" /f REG ADD %KEY%\939 /V 1 /D "%CDROM%\winapp\cmd2.cmd" /f REG ADD %KEY%\940 /VE /D "Finishing Installation 3 of 3" /f REG ADD %KEY%\940 /V 1 /D "%CDROM%\winapp\finish.cmd" /f :REG ADD %KEY%\0 /VE /D "" /f :REG ADD %KEY%\0 /V 1 /D "%CDROM%\winapp\" /f EXIT
This post has been edited by larciel: 15 March 2008 - 03:17 PM



Help

Back to top









