Cool script
Although I really have to give a shout for one freeware application: AIDA32 - www.aida32.hu (all that's required is that you register your company at Aida, no charge).
Just make a customized reportformat, and do inventories really slick with something like (this will do an inventory once a month):
code:
? "*** PC Auditing"
$DoInvent = "no"
$InventFile = "\\someserver\Inventory$$\" + @WKSTA + ".csv"
IF EXIST("$InventFile") = 0
$DoInvent = "yes"
ELSE
$FileMonth = SUBSTR(GETFILETIME("$InventFile"), 6, 2)
$ThisMonth = SUBSTR(@DATE, 6, 2)
IF $FileMonth <> $ThisMonth
DEL "$InventFile"
$DoInvent = "yes"
ENDIF
ENDIF
IF $DoInvent = "yes"
COLOR w/b ?" - PC audit, please wait..." COLOR y+/b
SHELL '%COMSPEC% /C $HomeServer\fileserver$$\Files\Aida32\aida32.exe /R "\\someserver\Inventory$$\$$HOSTNAME.csv" /CUSTOM "$HomeServer\fileserver$$\Files\Aida32\some_cust_report.rpf" /CSV /SHOWP /SILENT'
ELSE
COLOR w/b ?" - PC audit already made" COLOR y+/b
ENDIF
[ 20. May 2003, 11:02: Message edited by: masken ]
_________________________
The tart is out there