如何将以下代码转换为Windows批处理命令?
这是一个perl脚本,它在while循环中搜索文件,如果发现它退出.
use strict; use warnings; my $filename = 'something.txt'; while (1) { if (-e $filename) { print "File Exists!"; exit; } }
command file batch-file line while-loop
batch-file ×1
command ×1
file ×1
line ×1
while-loop ×1