Script Commands Parent topic

Deploy scripts using the Command Line Interface by typing your command in the following format:
SLCmd.exe -p <admin_password> <command>   <parameter> <value>
The following table lists the available abbreviated forms of parameters.

Abbreviations and Uses

Parameter
Abbreviation
Use
script
scr
Manage script commands
The following table lists the commands, parameters, and values available.

Script Commands

Command
Parameter
Description
add script
<extension> <interpreter1> [interpreter2] ...
Add the specified script extension and the interpreter(s) required to execute the script
For example, to add the script extension JSP with the interpreter file jscript.js, type:
SLCmd.exe -p <admin_password> add script jsp C:\Scripts\jscript.js
remove script
<extension> [interpreter1] [interpreter2] ...
Remove the specified script extension and the interpreter(s) required to execute the script
For example, to remove the script extension JSP with the interpreter file jscript.js, type:
SLCmd.exe -p <admin_password> remove script jsp C:\Scripts\jscript.js
Note
Note
If you do not specify any interpreter, the command removes all interpreters related to the script extension. If you specify interpreters, the command only removes the interpreters specified from the script extension rule.
show script
 
Display all script rules
For example, type:
SLCmd.exe -p <admin_password> show script
Note
Note
Safe Lock uses the following default script rules:
  • bat <cmd.exe>
  • cmd <cmd.exe>
  • com <ntvdm.exe>
  • dll <ntvdm.exe>
  • drv <ntvdm.exe>
  • exe <ntvdm.exe>
  • js <cscript.exe>,<wscript.exe>
  • msi <msiexec.exe>
  • pif <ntvdm.exe>
  • ps1 <powershell.exe>
  • sys <ntvdm.exe>
  • vbe <cscript.exe>,<wscript.exe>
  • vbs <cscript.exe>,<wscript.exe>