Login | |
|
 |
RE: VBSCRIPT TO RUN EXE - 9/23/2005 7:56:05 AM
|
|
 |
|
| |
thantos_kalev2001
Posts: 26
Score: 0
Joined: 8/31/2005
Status: offline
|
When you say certain company, can you differentiate by the name of the executable? Other than the name and/or folder path, I dont know how you could choose which exe's to run.
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/25/2005 7:34:15 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
I suggest run the above script with: If objFile.Manufacturer = "ABC" Then Wscript.Run "<CDROM>:\setup.exe" Else MsgBox "ERROR, YOU ARE NOT AUTHORIZED TO RUN THIS...YOU HAVE BEEN REPORTED!" Wscript.Quit(0) End If
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/26/2005 5:29:35 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
Didorno, Best to describe this is to quote Microsoft: quote:
The ExecQuery method of the SWbemServices object executes a query to retrieve objects. These objects are available through the returned SWbemObjectSet collection. A collection is a standard automation concept that provides a uniform interface to a set of objects over which you can perform iteration. The Scripting API for WMI exposes a number of interfaces that conform to the collection paradigm. In each case, you can use the Item method to identify the elements using a string . Hope this helps... Snipah
< Message edited by Snipah -- 9/26/2005 5:32:12 AM >
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/26/2005 7:16:08 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
to sum it all up: yes no probs
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/26/2005 11:57:52 PM
|
|
 |
|
| |
mbouchard
Posts: 1804
Score: 12
Joined: 5/15/2003
From: USA
Status: online
|
I know that I am coming in after the fact, but I just had to put my 2 cents in. Will the setup always be in the same location on each CD? Will they always use setup.exe? If the answer to either is no, then you might want to take a look at the AutoRun.inf to get the location of and the name of the setup file. Also, is there a chance that they will not set the manufacturer field on the exe? If so, you might want to include the ability to find a readme file, open it, and look for the name of the company.
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/27/2005 2:00:24 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
I believe that Symantec has their name written down in the app, looking at their commercial status..... but yes, for other companies this might be something to talk about. Also, not all companies create their own setup, place README files or neatly fill in the Autorun.inf.... Alotta companies even outsource their distribution, and distribution centers normally put their sig on it.... So when push comes to shove, you have an issue there.... unfortunatly there is no uniform way of creating a CD-Rom
< Message edited by Snipah -- 9/27/2005 2:01:30 AM >
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/27/2005 4:54:33 AM
|
|
 |
|
| |
didorno
Posts: 361
Score: 0
Joined: 2/12/2005
From:
Status: offline
|
mbouchard and Snipah You both have an issue. If the cd to be allowed is known beforehand, it is rather easy to add to the script additional requirements, such as file names, sizes, versions, and even folder structure, etcetera. By doing so, you narrow the chance of using an 'illegal' cd, if this is important enough. Bye, bye.
_____________________________
Regular Expression ? I (L+o{1,}v{1,3}e\s)+[iI]t!$
|
|
| |
|
|
|
 |
RE: VBSCRIPT TO RUN EXE - 9/27/2005 7:10:13 AM
|
|
 |
|
| |
Snipah
Posts: 1341
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
|
We have issues???? -lol- is this better?
_____________________________
For more information, please see the "Read me First" topic. http://www.visualbasicscript.com
|
|
| |
|
|
|
|
|