|
Lamont1701
|
 |
Posted: Tue Sep 19, 2006 4:05 am |
|
 |
 |
 |
 |
Hello People,
I need a Windows 2003 server, Perl 5 Script, that will check to see if a Folder exist, and if the Folder does not exist, then create that Folder. (If the Folder does exist, then do nothing.)
I know nothing about Perl 5 yet, but I have a script running now that needs attention, like yesterday!
Is it possible for someone to help me?
|
|
|
|
cheryl
| Joined: 17 Apr 2004 |
| Posts: 84 |
| Location: Newark, DE |
|
 |
Posted: Tue Sep 19, 2006 7:01 pm |
|
 |
 |
 |
 |
With perl, this should be fairly simple:
if ( not -d "c:\websites\mysite\mydir") {
mkdir("c:\websites\mysite\mydir");
}
|
http://www.rexswain.com/perl5.html is a great reference guide - I usually head to it when I have problems.
|
|
|