Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Fri Mar 29, 2024 6:20 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
[/code]
The code should probably read:

[code] if use_audit_log = "y" then
this_file = this_audit_log
end if
[/code]
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
[/code]
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:  
Powered by phpBB® Forum Software © phpBB Group