so some directs don't work
like
dir abc 2> nul
and error message is not suppressed
re-enable it, following the tips on
http://www.cynosurex.com/Forums/DisplayComments.php?file=Batch/NUL_Missing_on_WinFLP
prepare 2 files from XP CD and copy them to system32 folder
\WINDOWS\system32\drivers\null.sys
\WINDOWS\system32\regini.exe
download the Null.reg, Install.bat
Null.reg
Windows Registry Editor Version 5.00Install.bat
; http://www.cynosurex.com/Forums/DisplayComments.php?file=Batch/NUL_Missing_on_WinFLP
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{8ECC055D-047F-11D1-A537-0000F8753ED1}]
"Class"="LegacyDriver"
@="Non-Plug and Play Drivers"
"NoDisplayClass"="1"
"SilentInstall"="1"
"NoInstallClass"="1"
"EnumPropPages32"="SysSetup.Dll,LegacyDriverPropPageProvider"
"Icon"="-19"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_NULL]
"NextInstance"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_NULL\0000]
"Service"="Null"
"Legacy"=dword:00000001
"ConfigFlags"=dword:00000020
"Class"="LegacyDriver"
"ClassGUID"="{8ECC055D-047F-11D1-A537-0000F8753ED1}"
"DeviceDesc"="Null"
"Capabilities"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_NULL\0000\LogConf]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_NULL\0000\Control]
"ActiveService"="Null"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Null]
"ErrorControl"=dword:00000001
"Group"="Base"
"Start"=dword:00000001
"Tag"=dword:00000001
"Type"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Null\Enum]
"0"="Root\\LEGACY_NULL\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
@echo off
rem Install.bat
rem 2008-10-20
rem Chieh Cheng
rem GNU General Public License (GPL), Version 2, June 1991
set success=true
if not exist null.sys (
echo null.sys does not exist.
echo You must copy "\WINDOWS\system32\drivers\null.sys" into this directory.
echo.
set success=false
)
if not exist regini.exe (
echo regini.exe does not exist.
echo You must copy "\WINDOWS\system32\regini.exe" into this directory.
echo.
set success=false
)
if not exist Null.reg (
echo Null.reg does not exist.
echo You must download Null.reg into this directory.
echo You may download a copy of Null.reg from
echo http://www.cynosurex.com/Forums/DisplayComments.php?file=Batch/NUL_Missing_on_WinFLP
echo.
set success=false
)
echo HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root [1] > Permission.txt
if not exist Permission.txt (
echo Unable to create Permission.txt.
echo The installation requires the ability to write to the installation directory.
echo.
set success=false
)
if "%success%" == "true" (
copy "null.sys" "%SystemDrive%\windows\system32\drivers"
regini Permission.txt
regedit /s "NULL.reg"
echo Installation of the NULL device completed.
echo You must reboot for the change to take effect.
echo.
) else (
echo Installation of the NULL device failed.
echo Please correct the problem and try again.
echo.
)
pause
and run the install.bat
it should work properly
No comments:
Post a Comment