aa2zz6 Posted November 20, 2016 Posted November 20, 2016 (edited) 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 November 20, 2016 by aa2zz6
InunoTaishou Posted November 20, 2016 Posted November 20, 2016 #include "sub-directory\file name.au3" #include "sub-directory1\sub-directory2\sub-directory3\file name.au3"
aa2zz6 Posted November 20, 2016 Author Posted November 20, 2016 (edited) 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 November 20, 2016 by aa2zz6
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now