Results 1 to 2 of 2
Related
-
problem linking image in folder within the main folder Forum: HTML Forum
Replies: 2 -
Script to display names of files in that folder as link Forum: HTML Forum
Replies: 2 -
Checking the contents of a folder for images Forum: Javascript Forum
Replies: 0 -
Help! How do I create the public_html folder? Forum: HTML Forum
Replies: 6 -
Folder referencing Forum: HTML Forum
Replies: 2
-
09-18-2006, 10:01 PM #1
Script, Checking To See If Folder Exist -- If Not Create That Folder
Hello People,
I need a Windows 2003, 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?
-
09-20-2006, 04:21 PM #2
Re: Script, Checking To See If Folder Exist -- If Not Create That Folder
Hi,
Code:$filename = "/users/abc123/text.txt"; if(-e $filename){ print "File exists."; } else { mkdir ($filename); }
HTH
U
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum