Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 16th, 2005, 11:31 PM
dt_aiying dt_aiying is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 93 dt_aiying User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 58 m 8 sec
Reputation Power: 4
Calling other EXE file

Hi everyone,

I am supposed to program a VB application that calls an EXE file (eg: an antivirus scanner program) when a user triggers this event (eg: at the click of a button in the application) after this user has logged into the application.

Then, the program should also detect the completion of the antivirus scanning and proceed further (*).

Is this possible to be done? Any ideas / suggestions, please?

(*) Read the last scan results from the antivirus scanner program's activity log file and then save all this info into a database - I'm currently working this out.

Thanks in advance for any help on this.

Reply With Quote
  #2  
Old October 17th, 2005, 02:48 AM
WhoAmI WhoAmI is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 12 WhoAmI User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 21 sec
Reputation Power: 0
u need to use shell command to open a exe file using vb..

Reply With Quote
  #3  
Old October 17th, 2005, 05:22 AM
dt_aiying dt_aiying is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 93 dt_aiying User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 58 m 8 sec
Reputation Power: 4
Ok, I understand what you are saying, will work on that.
But how then, can the VB application detect that the antivirus scan has been completed?

Is this possible to be done?

Reply With Quote
  #4  
Old October 17th, 2005, 07:14 AM
WhoAmI WhoAmI is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 12 WhoAmI User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 21 sec
Reputation Power: 0
i dont think it will be possible directly...but as per my best of knowledge each and every anti virus application will generate a log file ..by reading this,I think we can achive this task..

Reply With Quote
  #5  
Old October 18th, 2005, 08:14 AM
dt_aiying dt_aiying is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 93 dt_aiying User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 58 m 8 sec
Reputation Power: 4
Yes, you are right. I can actually make use of the antivirus scan log file.

But the requirement is such that the antivirus scanning program is executed when the user has logged into the VB application. Then the VB application needs to detect the completion of the scanning activity before it can start reading the last scan results from a log file.

I've managed to get the last scan results from the log file, but can't seem to get the two earlier tasks done.

Any ideas?

Reply With Quote
  #6  
Old October 19th, 2005, 05:31 PM
gecko36 gecko36 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: Where I sleep
Posts: 207 gecko36 User rank is Private First Class (20 - 50 Reputation Level)gecko36 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 22 h 10 m 25 sec
Reputation Power: 4
Send a message via ICQ to gecko36
Quote:
Originally Posted by dt_aiying
Yes, you are right. I can actually make use of the antivirus scan log file.

But the requirement is such that the antivirus scanning program is executed when the user has logged into the VB application. Then the VB application needs to detect the completion of the scanning activity before it can start reading the last scan results from a log file.

I've managed to get the last scan results from the log file, but can't seem to get the two earlier tasks done.

Any ideas?

I don't know if it's possible but maybe you can find a way to back up the log file with a new name that changes each time the program runs. Then you have a different program run to open the two log files that were created prior to the most recent. I wouldn't know how it would be done but it sounds almost feasible to me :P

Reply With Quote
  #7  
Old October 19th, 2005, 09:52 PM
dt_aiying dt_aiying is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 93 dt_aiying User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 13 h 58 m 8 sec
Reputation Power: 4
Hi everyone,

I've just found out that there are two different antivirus scanning program versions. This leads to different activity log file (that contains the log of the scanning activity performed) name and path. We'll also have different antivirus scanning program's EXE file name and path.

So this is how the flow of the program should be:
1. When a user logs into this VB application, the program calls the antivirus scanning program's EXE file. The VB application also needs to firstly detect the Operating System (whether Win 98 or Win XP) used, because of the different antivirus scanning program version (2 different program versions) used. The EXE file for the different antivirus scanning program versions have different file name and path. The activity log file for the different antivirus scanning program version also have different file name and path. Once the OS is determined, the VB application should then return the appropriate file names and paths.

2. The VB application should be able to detect the completion of the scanning activity.

3. Then only can the VB application start reading the last scan results from the antivirus scanning program's activity log file, to be saved into the SQL Server database.

I've managed to do task 3. I do not know if tasks 1 and task 2 are possible to be carried out or not. I guess VB Shell commands need to be coded for tasks 1 and 2? How do I go about with it? Any ideas / suggestions?

Any help at all will be much appreciated. Thanks a lot..!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Calling other EXE file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT