VB 如何编程把一个文件在后台运行
想把这个文件加vb 在后台运行,每格30秒就自动运行那个文件??
@echo Off
set 以=双绑 作者:阿里巴巴
@title %以%
arp -d
echo 正在获取本机信息.....
for /f "tokens=2 delims=:" %%i in ('ipconfig /all ^| find /i "ip address"') do set ip=%%i
echo IP:%IP%
for /f "tokens=2 delims=:" %%i in ('ipconfig /all ^| find /i "Physical Address"') do Set MAC=%%i
echo MAC:%MAC%
echo 正在获取网关信息.....
echo GateIP:192.168.0.1
ping 192.168.0.1 -t -n 1 >nul
FOR /f "skip=3 tokens=2 usebackq " %%i in (`arp -a 192.168.0.1`) do Set GateMAC=%%i
echo GateMAC:%GateMAC%
:bangdin
arp -d
arp -s %IP% %MAC%
arp -s 192.168.0.1 %GateMAC%
arp -a
echo 绑定成功 30秒后将再次绑定
ping 127.0.0.1 -n 30 >nul
goto bangdin
[此贴子已经被作者于2007-7-1 10:55:37编辑过]