Nanoscribe GmbH - True 3D Laser Lithography
FAQ Home Advanced search Instant Response

I tried to include a gwl script present in a different directory mentioning the full path of the directory and the file name. I am getting an error "File not found". But when I include the file which is in the same directory where I have my script then it works without error. Is it not possible to include the gwl scripts present in a different directory?

Category: Software » DeScribe
Tags: -
Last update: 2011-02-26 13:11 | Author: Nandashayee | Revision: 1.1 |

For including a file which is in a different folder, there are 2 possibilities.

  1. 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".
  2. 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".


Digg it! Share on Facebook Print this record Show this as PDF file

Related entries:


You cannot comment on this entry

Comment of Nandashayee:
The first method is working as described. But the second method is not working. Please let me know if there is any other procedure.
Added at: 2011-03-28 10:01