选择/ c wasd / n / t 0.5

时间:2016-04-06 22:40:36

标签: batch-file choice

我曾尝试在批处理文件中使用<div class='photo-setup'> <div class='setup-head'> <div class='photo-name'>Photo Name : <input type='text' placeholder='Photo Name' name='photo-name' title='Photo Name'></div> <div class='photo-date'>Photo Date : <?php echo date('F j, o', time()) ?></div> </div> <div class='photo-section'> <img src='http://placehold.it/600/eee' width='600' height='600' alt='photo'> </div> <div class='tag-section'> Tags : <input type='text' placeholder='Tags e.g. (#beach #park #dog)'> </div> <div class='commit-section'> <a class='save' href='#'>Save</a><a class='cancel' href='#'>Cancel</a> </div> </div>命令,但找不到任何方法来测试用户输入的时间不到一秒。

我无法在互联网上的任何地方找到答案。 (即使是谷歌搜索的第10页)

如果有人可以告诉我使用choice /c adqps /n /t 0.5 /d s命令的方法不到一秒钟,或者给我看一个也检测用户输入的替代命令,我将不胜感激。

1 个答案:

答案 0 :(得分:1)

使用选择/?或者从命令提示符中选择帮助说/ t参数是秒数,允许值是0到9999.没有迹象表明它使用了部分秒,或者可能有一个选项使用毫秒而不是整秒或上限为9999.99。

以下是Choice documentation的相关文字:

  

/ t

     

指定使用默认值之前暂停的秒数   选择由/ d指定。可接受的值为0到9999.如果是/ t   设置为0,选择在返回默认选项之前不会暂停。

所以答案是不能这样做(至少使用Choice),因为不支持几分之一。