But then I get stuck. I want to pull some data out and discard and then print some of it to an HTML file. Here is a snippet of what the data looks like from the text fileopen (XCACLS, "xcacls.txt") or die "Cant open file: $!\n";
I would like to pull out all the stuff at the top where it talks about starting the script etc. and basically list the folder and who has access to it. So I think I would have to have an IF statement to read through the data and then pattern match looking for G:\. I feel a little overwhelmedStarting XCACLS.VBS (Version: 5.2) Script at 5/1/2006 11:02:33 AM Startup directory: "G:\" Arguments Used: Filename = "*.*" /L (File: "xcacls.txt") ********************************************************************** +**** File: G:\xcacls.txt Permissions: Type Username Permissions Inheritance + Allowed BUILTIN\Administrators Full Control This Folder Onl +y Allowed \Everyone Read and Execute This Folder Onl +y Allowed NT AUTHORITY\SYSTEM Full Control This Folder Onl +y No Auditing set Owner: BUILTIN\Administrators ********************************************************************** +**** ********************************************************************** +**** Directory: G:\1500Jennilsa Permissions: Type Username Permissions Inheritance + Allowed OURDOMAIN\1500Jennilsa Modify This Folder, Sub +folde Allowed BUILTIN\Administrators Full Control This Folder, Su +bfolde Allowed \CREATOR OWNER Full Control Subfolders and +Files Allowed NT AUTHORITY\SYSTEM Full Control This Folder, Su +bfolde No Auditing set Owner: BUILTIN\Administrators ********************************************************************** +****
In reply to PERL newbie Cant figure out where to start by jwashburn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |