|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Programmer's Guide > .INCLUDE directive in scripts |
available from build: 20050916 |
The directive .INCLUDE is supported at the header of a script for including ( by preloading ) other scripts or libraries at the head of the script.
For encrypted scripts ( with the ### at the end of the filename), it is also possible to declare encrypted scripts or libraries for the .INCLUDE directive.
MyLib.LIB
Sub MyLibSub
DBWMsgBox "This is MyLibSub"
End sub
Test.VBS
'.INCLUDE C:\program files\dbworks\lst\mylib.lib
Sub main()
DBWInit(TRUE)
Call MyLibSub
End sub
If you like to encrypt the Test.VBS, you must encrypt any included script or library.
In such case, the above example becomes:
MyLib.LIB
Sub MyLibSub
DBWMsgBox "This is the MyLibSub"
End sub
Apply the DBWEncryptScript utility and create the:
MyLib###.LIB
<encrypted content>
Test.VBS
'.INCLUDE C:\program files\dbworks\lst\mylib###.lib
Sub main()
DBWInit(TRUE)
Call MyLibSub
End sub
Apply the DBWEncryptScript utility and create the:
Test###.VBS
<encrypted content>