I got this script from another post and it works great

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



What does the 6, 2 mean at the end of this statement? $ThisMonth = SUBSTR(@DATE, 6, 2)


Edited by Jooel (2004-08-26 07:37 PM)