Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


vbscrip for finding application path.

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,37909
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> vbscrip for finding application path.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 vbscrip for finding application path. - 9/19/2006 1:15:58 AM   
  waqar_mohmand

 

Posts: 1
Score: 0
Joined: 9/19/2006
Status: offline
hello all of u,
hope all of u will be fine.
I have some problem and i need some help from u people.
I want to retrieve the application path that has been opened by the users i.e i want to have a vbscript that gives me the path of the application that the user opens i.e when the user open MSWord then the script executes and it gives me the msword.exe path i.e c:/program files/etc etc

if any one has an ida in solving this priblem plz tell me

                                                                                   with regards,
                                                                                 waqar ajmal
                    

_____________________________

waqar ajmal mohmand
 
 
Post #: 1
 
 RE: vbscrip for finding application path. - 9/19/2006 1:47:34 AM   
  ebgreen


Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
If you use WMI to retrieve the running processes, then you would have access to the Command Line that started the process. That is where I would star. You may also have to search the path for the first occurence of the file.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to waqar_mohmand)
 
 
Post #: 2
 
 RE: vbscrip for finding application path. - 9/19/2006 11:35:18 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
You can also get the path to the app by reading the registry.  This won't give you all exe, but should give you a large majority.

hklm\software\microsoft\windows\currentversion\app paths\winword.exe (path)

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to waqar_mohmand)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> vbscrip for finding application path. Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts