TheDcoder Posted November 22, 2015 Posted November 22, 2015 Hello ,X:\Root Folder\Sub FolderRoot Folder contains the script to include in the script located in Sub Folder... Is it possible without specifying the exact path? #include "X:\Root Folder\Sub Folder" Thanks in Advance! TD EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
water Posted November 22, 2015 Posted November 22, 2015 Did you try#include "..\Script-to-be-included.au3" TheDcoder 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Jfish Posted November 22, 2015 Posted November 22, 2015 @Water - I think that may be reversed. I think he is after this (still a relative path but going down not up).#include "sub\script.au3" Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
water Posted November 22, 2015 Posted November 22, 2015 Seems my English is a bit rusty I've read it the other way round. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Jfish Posted November 22, 2015 Posted November 22, 2015 (edited) My bad, I re-read it again. I think you were right. I read it that the script in root was including the script in sub. He is covered either way ;-) Edited November 22, 2015 by Jfish Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt
trancexx Posted November 22, 2015 Posted November 22, 2015 Hello ,X:\Root Folder\Sub FolderRoot Folder contains the script to include in the script located in Sub Folder... Is it possible without specifying the exact path? #include "X:\Root Folder\Sub Folder" Thanks in Advance! TD You have to specify the name of the include file regardless if the path is absolute or relative, both of which are allowed. Xandy 1 ♡♡♡ . eMyvnE
TheDcoder Posted November 22, 2015 Author Posted November 22, 2015 @water Works like a charm!@Jfish water was right @trancexx I know that I have to include the file name at least EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
JohnOne Posted November 22, 2015 Posted November 22, 2015 Hey TD!Notice anything about the links in "Similar Content" below thread?Thought I was getting the deja-vu AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
TheDcoder Posted November 22, 2015 Author Posted November 22, 2015 Hello J1 "Help with including a script" was about including a file in the sub directory , This is the opposite situation. EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time) DcodingTheWeb Forum - Follow for updates and Join for discussion
JohnOne Posted November 22, 2015 Posted November 22, 2015 Accepted.As you were! AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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