how can i convert following code into windows batch command?
Here is a perl script which is searching for a file in a while loop, if found it Exits.
use strict;
use warnings;
my $filename = 'something.txt';
while (1) {
if (-e $filename) {
print "File Exists!";
exit;
}
}