|

Command Line Parameters
|
Using these Command Line Parameters you can completely customize the Scripting of Cool Info.
Command Line Parameters:
/O Place Cool Info in Output mode
/Q Start Cool Info, Output Data then Exit
/S Skip Removable Drive Enumeration
/P Export file to Microsoft Jet 2000 Database Format
/X Export file to XML
/H Export file to HTML
/T Export file to Text
/L:<server>[:<username>:<userpassword>] - Export to SQL Server. <server> could be both symbolic name or IP address. <username> and <userpassword> are optional parameters. Examples of usage: /L:MAINFRAME , /L:192.168.0.11:andy:ydna.
/E[:<recipient_address>] - Send export report via e-mail. <recipient_address> is an optional parameter. If it's set in command line then it overrides current program settings. Examples of usage: /E , /E:nobody@nowhere.net.
/N Perform a new file scan, otherwise use values from the registry
/M Perform a new shared file scan, otherwise use values from the registry
/F:<filename> Specify a filename (ex. /F:\\myserver\myshare\allmachines.mdb)
/Z:abcdefghijklmnopqr Specify sections to export where abcdefghijklmno is represented by:
a = CPU
b = Display
c = Drives
d = Environment Variables
e = Fonts
f = Input
g = Memory
h = Modems
i = Network Main
j = Power
k = Printers
l = Software
m = Sound Cards
n = System Devices
o = System Directories
p = Application Activity Log
q = Applications In Memory
r = Drivers Installed
For example, here is a script that looks for Cool Info. If it exists it exports the data to a Database file. The parameters are displayed in Bold Red.
If exist c:\progra~1\Creation\CoolInfo\CoolInfo.exe coolinfo.exe /O /Q /D /Z:ahlo /F
:\\myserver\myshare\allmachines.mdb
Lets Break it down.
If exist This is looking to see if the file immediately following exists.
c:\progra~1\Creation\CoolInfo\CoolInfo.exe This is the file that the If exist is looking for. If it finds this file it proceeds on to the next line.
coolinfo.exe This program is now executed. As it does it looks for any Command Line Parameters that may be following it.
/O This Parameter places Cool Info into Output mode so it knows to export the data.
/Q This Parameter starts Cool Info, tells it to output the data then exit the program immediately so that it does not remain open on the users Computer.
/D Specifies that Cool Info export the data in a Microsoft Access 97 format.
/Z:ahlo Specifies to only export CPU, Modem, Software, and System Directory information.
/F Specifies the location and name of the file to save it to.
Thats it. Using Command Line Parameters with Cool Info allows you to export exactly what you what without anyone knowing.
|
|