Jump to content

Include/Calling scripts from sub directories


aa2zz6
 Share

Recommended Posts

I have a folder that holds a main script. In the main folder I have sub folders with scripts that include certain functions. How do I access the scripts in the sub folders.

I can assume @ScriptDir wouldn't work with include to search the current folder?  

#Include "file.au3"

 

Edited by aa2zz6
Link to comment
Share on other sites

I get an error trying to use those.

I would like to avoid using full paths since these project files will be on multiple operator's laptops.

#include "C:\Users\aa2zz6\Desktop\Mapping files\Functions\file_name.au3"

 

Edit - Okay you have to include the following piece of code below in order for this to work.

#include-once

 

Thanks for the help!

Edited by aa2zz6
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...