Open-AudIT

What's on your network?
It is currently Wed Jan 17, 2018 9:14 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Thu Feb 24, 2011 9:43 am 
Offline
Newbie

Joined: Tue Feb 22, 2011 3:25 am
Posts: 7
I believe that the generated path for the email attachment in audit.vbs is not correct.
In the following code, I beleive that "this_audit_log" already has a path on it. Adding
another pass leads to an SMTP error:

Code:
    if use_audit_log = "y" then
        Set objShell = WScript.CreateObject("WScript.Shell")
        this_folder = objShell.CurrentDirectory
        this_file = this_folder & "\" & this_audit_log
    end if

The code should probably read:

Code:
    if use_audit_log = "y" then
        this_file = this_audit_log
    end if

Or better still, the if/then bock could be eliminated and the
single reference to "this_file" be replaced with "this_audit_log"
later in the method:

Code:
    if use_audit_log = "y" then
        objEmail.AddAttachment this_file
    end if

Regards,
Steve


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group