oops.. minor correction in code..
>From "Learning Perl on Win32" by O'Reilly
$name = "index.html";
if (-e $name) {
print "I see you already have a file named $name\n";
} else {
print "Perhaps you'd like to make a file called $name\n";
}
So if you're checking a file across the network you'd do:
might want to loop thru a file with servernames listed and spit them as the
$servername variable.
$filename="\\\\" . $servername . "\\c\$\\winnt\\system32\\somefile.dll";
if (-e $filename) {
print "I see you already have a file named $filename\n";
} else {
print "Perhaps you'd like to make a file called $filename\n";
}
James
-----Original Message-----
From: Jason Lee [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 3:12 PM
To: [EMAIL PROTECTED]
Subject: Winnt File Find Through Perl
Hello Again,
I am wanting to write a script that will look through a workstations
%SystemRoot% Folder and tell me if a certain file exists. Could someone
point
me to the right module or command for a file find for Windows NT.
Thanks so much
Jason Lee
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin