BAT START W /命令识别 [英] BAT START w/ command recognized

查看:2283
本文介绍了BAT START W /命令识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的最终目标是:


  • 将&放大器;拖放视频选择到批处理文件

  • VLC运行具有选择为播放列表,并在年底
  • 关闭
  • GlovePIE同时加载和运行脚本

  • 电脑关闭时,VLC关闭

  • 用户可以取消关机,一键(二是罚款)

我试图把这个在一起,但它悲惨的失败了...该GlovePIE语法不以START操作工作,但我不知道的另一种方式来运行在同一时间这两项计划。我试图使运行VLC.bat和GlovePIE.bat蝙蝠,但我不知道怎么打发Launcher.bat和VLC.bat之间的变量。不管怎么说,拥有一切作为一个单一的蝙蝠似乎是一个更好的主意,我...

I tried to put this together but it fails miserably... The GlovePIE syntax does not work with a START operation, but I do not know of another way to run both programs at the same time. I tried making a bat that runs VLC.bat and GlovePIE.bat but I don't know how to pass variables between the Launcher.bat and VLC.bat. Anyways, having it all as a single bat seems like a better idea to me...

我到目前为止有:

@echo off
if exist "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" (
start "" "C:\Program Files\GlovePIE045Free\piefree.exe" -"C:\Program Files\GlovePIE045Free\CustomScripts\xbox360VLCremote.PIE" /tray
start /wait "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 vlc://quit
) else (goto :EOF)
taskkill /f /im piefree.exe
cls
choice /c CP /D P /T 120 /M "Waiting for 120 seconds: Press C to cancel shutdown, or P to power off now"
if errorlevel 2 shutdown -s

这是加载GlovePIE正常,但多个视频的不被人注意。

This is loading GlovePIE properly but multiple video's are not being noticed.

推荐答案

我不能对此进行测试,但我想尝试

I can't test this, but I'd try

start /wait "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" %* vlc://quit

请注意:一对额外的引号。这台开始编辑会议的名称,否则第一个援引串被使用。

Note: extra pair of quotes. This sets the title of the STARTed session, otherwise the first "quoted string" is used.

%* 办法 all命令行参数 10%是无效的,只有%1 ..%9 可用。 %10 将PTED为%1 间$ P $与 0 追加。

%* means allcommand-line arguments. %10 is invalid, only %1..%9 are available. %10 would be interpreted as %1 with 0 appended.

进一步想:如果clasically放置在一个块(发言parenthesised序列)时失败,那么,重组code,但你可以尝试

Further thought: If it fails when placed in a block (parenthesised sequence of statements) then clasically, restructure the code, but you could try

for /f "delims=" %%z in ("%*") do start /wait "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" %%z vlc://quit

(理论:有<大骨节病>)中传递的参数)

这篇关于BAT START W /命令识别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆