Hi Vinod,
U can use the following :
if(-e "myFile.exe"){
Do Somehting
}
else {
print the error messgae
}
Simillarly, can also check for directories with the -d option.
cheers,
savinder.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Vinod Panikar
Sent: Friday, May 24, 2002 11:37 AM
To: [EMAIL PROTECTED]
Subject: check the external file presence
Hi All,
Is there any way I can include and .exe file
in my perl script.
Like, I need to run a perl script and it should look for an external exe
file presence in the current folder.
Any ideas?
Thanks!
Vinod
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs