小编Mih*_*hir的帖子

使用Windows批处理命令循环直到文件存在

如何将以下代码转换为Windows批处理命令?

这是一个perl脚本,它在while循环中搜索文件,如果发现它退出.

use strict;
use warnings;
my $filename = 'something.txt'; 
while (1) {

if (-e $filename) {
print "File Exists!";
   exit;
   }

}
Run Code Online (Sandbox Code Playgroud)

command file batch-file line while-loop

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

batch-file ×1

command ×1

file ×1

line ×1

while-loop ×1