输入以下内容,指定步骤Jenkins209.bat文件的路径,保存
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c D:\jenkins\jenkins209.bat",vbhide
双轮禅者击袭枣运行vbs脚本jenkins209.vbs
不清楚你的实际文件/情况,仅以问题中的样例/说明及猜测为据;以下代码复制粘贴到记事穗桥本,另存为xx.bat,编码选ANSI@echo off&cd /d "%~dp0"rem 拖拽一个文件到bat文件图标上并让该bat隐藏运行
set #=Any questions&set _=WX&set $=Q&set/az=0x53b7e0b4
title %#% +%$%%$%/%_% 猜凳猛%z%
if "%~1" equ "" (
echodrag and drop a file onto the batfile icon
pause&goto end
) else (
粗毁 if /i "%~2" equ "hide" (goto begin)
)
start mshta vbscript:createobject("wscript.shell").run("""%~f0"" ""%~1"" hide",0)(window.close)&&exit
:begin
echofilepath="%~1"
echofiledirectory="%~dp1"
echofilename="%~nx1"
echodo something......
:end
exit
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)