论坛: 编程破解 标题: bat的问题请教 复制本贴地址    
作者: nzwj [nzwj]    论坛用户   登录
@echo off
  if '%1'=='' goto end
  if '%2'=='' goto end
  if '%3'=='' goto end
  if '%4'=='' goto end
  goto execute
:execute
  :processargs
  echo Starting %3\%4...
  echo Starting %1\%2...
  start x /D%3 %4
  start y wait /D%1 %2
  goto close
:close
  taskkll /IM %4 > nul
rem
goto end
:end
exit
其中,x,y是程序名和路径
为什么不能执行??
高手指点
谢谢

地主 发表时间: 05-03-16 11:44

回复: nzwj [nzwj]   论坛用户   登录
wait前有/

B1层 发表时间: 05-03-16 11:45

回复: hackgou [hackgou]   论坛用户   登录
其实不大明白你的批处理到底干什么。
不过说说我的看法:
1。把cmd下面的结果给我们说说。
2。start的参数不正确。
然后猜测一下有没有一下一些失误:
1。x、y在不在%PATH%中。
2。有没有给该bat合适的参数。
……



[此贴被 憨狗(hackgou) 在 03月29日21时57分 编辑过]

B2层 发表时间: 05-03-29 21:34

回复: liximi [liximi]   论坛用户   登录
拜托,不需要start,直接输入程序名.如
scanreg
scandisk

B3层 发表时间: 05-03-31 17:53

回复: nzwj [nzwj]   论坛用户   登录
谢了

B4层 发表时间: 05-04-08 15:32

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号