Scripting in Kaseya
Written by Daniel Mundy
Monday, 01 December 2008 15:16
Getting a Datestamp
Execute Shell Command
Parameter 1 : cscript #vAgentConfiguration.agentTempDir#\datestamp.vbs #vAgentConfiguration.agentTempDir#\datestamp.txt
Parameter 2 : 0
OS Type : 0
Get Variable
Parameter 1 : 1
Parameter 2 : #vAgentConfiguration.agentTempDir#\datestamp.txt
Parameter 3 : datestamp
OS Type : 0
Delete File
Parameter 1 : #vAgentConfiguration.agentTempDir#\datestamp.txt
OS Type : 0
SQL Variables
These variables are available to all scripts and are pulled directly from the database.Look in the help file under "Database Views" for a full list.
#vAgentConfiguration.agentTempDir# - The temp directory used by the agent on this system
#vAgentConfiguration.machName# - Machine Name used for each agent
#vAgentConfiguration.groupName# - Group Name used for each agent
Bookmark
Email this
Hits: 943
Trackback(0)
Comments (0)

Write comment
Last Updated on Sunday, 30 May 2010 10:13
Are you stuck?
This tech stuff isn't for everyone. If you'd rather just pay someone to fix it for you, email daniel@mundy.com.au.
I'll be happy to help you.

Daniel Mundy



