⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.cmd

📁 这是一个可以在NT/2000环境下读写各种端口、终端源数据的库。无需自己编写系统驱动即可操控硬件端口
💻 CMD
字号:
@echo off
echo NTPORT Service installation
if %1. == . goto help


echo Test %1 ...
net view %1 >nul
if errorlevel 1 goto NoAnswer


echo Delete zntport
sc.exe \\%1 Stop zntport>NUL
sleep 2
sc.exe \\%1 delete zntport>NUL
sleep 2

copy /B Redist\zntport.sys \\%1\ADMIN$\SYSTEM32\drivers\zntport.sys
rem cacls \\%1\admin$\system32\zntport.sys /E /R Jeder
cacls \\%1\admin$\system32\drivers\zntport.sys /E /R EveryOne

copy /B Redist\ntport.dll \\%1\ADMIN$\SYSTEM32\ntport.dll
rem cacls \\%1\admin$\system32\ntport.dll /E /R Jeder
cacls \\%1\admin$\system32\ntport.dll  /E /R EveryOne



sc \\%1 Create zntport BinPath= %%SystemRoot%%\System32\drivers\zntport.sys DisplayName= "NTPort Library Driver"  type= kernel start= auto error= ignore

sc \\%1 Start zntport

goto end

:help
echo %0 Computername
echo.
echo Need Admin$-Share and NTPORT for installation.
goto end


:NoAnswer
echo.
echo ************************************************************************
echo Can't connect to %1.
echo ************************************************************************
echo.
pause
goto end



:end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -