|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Programmer's Guide > DBWorks StandAlone Server > DBWorks Stand Alone Server extended support - Standard Library |
When you start a DBWorks Standalone Server (DBWAlone.Api object) you can use a simple script redirection to have available the full Standard Library with all its commands.
Calling the script through the ExecScript shell command, makes it resulting as running inside the Standalone environment (so providing the full library functionality).
CreateSAserverScript.vbs
Set DBWApp = CreateObject("DBWAlone.Api")
okDBW = DBWApp.CallBack( "@StartApplication" )
if okDBW = false then
DBWMsgBox "DBWorks Standalone Application has been terminated."
else
okDBW = DBWApp.CallBack("ExecScript system\myScript.vbs")
end if
MyScript.vbs
Sub Main()
DBWInit(TRUE)
...
end Sub