VB运行批处理

来源:百度知道 编辑:UC知道 时间:2024/05/15 14:21:18
@echo off
sc config Dhcp start= AUTO
sc config TapiSrv start= AUTO
sc config Netman start= AUTO
sc config RasMan start= AUTO
Net start Dhcp
Net start TapiSrv
Net start RasMan
Net start Netman
echo Done!

@echo off
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Nexon\KartRider\M01" /f
reg delete "HKEY_CURRENT_USER\Control Panel\International" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Nexon\NexonPlug" /f

谁能帮我把上面的两段P处理内容写到VB6.0里面,并运行它!
看好问题了!!!把上面的两段P处理内容写到VB6.0里面,并运行它!

偶是刚学VB,不怎么懂.希望能把转好的代码发给偶! 另为求一个VB高手,能熟练使用VB操作注册表的. 谁能再把:打开控制面板和服务的代码给我?

你可以把这两个保存成批处理文件
然后直接shell("文件名.bat")就可以啊

问问题还这么狂妄……
拿分闪人……

dim i
set i=createobject("wscript.shell")
i.regwrite "HKCU\...HKLM\...键名","键值","键类型(REG_SZ,REG_DWORD...)"
i.regread
i.regdelete

用shell来调用cmd.exe来处理

生成BAT.省事.你可以把它入到你的程序APP目录下.很多程序以前都是这要做的.