请问怎样使用批处理拷贝文件到system32尀drivers目录下?谁帮我写个批处理文件?

2025-03-06 11:26:39
推荐回答(4个)
回答1:

copy /y D:\sysset\menu\gfclient\installProdrv.exe %windir%\system32\drivers
copy /y D:\sysset\menu\gfclient\sephidepro.sys %windir%\system32\drivers
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Run /v installProdrv /d %windir%\system32\drivers\installProdrv.exe

这实际是三行代码,因为版面太窄换行了。

回答2:

copy /y d:\xyz.sys C:\WINDOWS\system32\drivers
如果路径 中包含中文或空格 请用 " " 把它围起来

回答3:

@echo off
copy /y D:\sysset\menu\gfclient\installProdrv.exe %windir%\system32\drivers
copy /y D:\sysset\menu\gfclient\sephidepro.sys %windir%\system32\drivers
echo cd /d %windir%\system32\drivers>%userprofile%\「开始」菜单\程序\启动\inst.bat
echo installProdrv.exe>>%userprofile%\「开始」菜单\程序\启动\inst.bat

回答4:

三楼正解!