For including a file which is in a different folder, there are 2
possibilities.
- If the folder containing the file is in the same main folder which
contains the script then we can include the file by specifying the folder
address in the following manner.
.\foldername\filename.gwl
Example:
The script file which has to be included is "C:\Temp\Example\new.gwl". The main
script in which the script file "new.gwl" has to be included is
"C:\Temp\eg.gwl". In this case the script file "new.gwl"
can be included by having the following command in "eg.gwl".
"Include .\Example\new.gwl".
- If the folder containing the script file is in a different directory then
the directory has to be changed using the "cd dir" command and the script
file can be included using the first method.
Example:
The script file which has to be included is "D:\User\Example\new.gwl". The main
script in which the script file "new.gwl" has to be included is
"C:\Temp\eg.gwl". In this case the script file "new.gwl"
can be included by having the following command in "eg.gwl".
"cd D:\User
Include .\Example\new.gwl".