Ram Posted May 14, 2007 Posted May 14, 2007 Hi,Is it possible to get the default location by autoit. for eg: If I have a script inside C:\test\test2\excelCOM_UDF.au3In my script I have to type the full link #include <C:\test\test2\excelCOM_UDF.au3>Now If I move this script to D:\abc\abc2\excelCom_UDF.au3 I have to change the location again in the script everytime.It is not the same when giving the link in html. we just give the location without the domain name e.g. ../page/test.html and not http://www.test.com/page/test.htmlIs this possible in AutoIT if so how do I go about giving the link... I treid ..\..\test2\excelCOM_udf.au3 but didn't work?
Xenobiologist Posted May 14, 2007 Posted May 14, 2007 Hi, put the udf.au3 into the include folder. :-) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Ram Posted May 15, 2007 Author Posted May 15, 2007 Hi,put the udf.au3 into the include folder. :-)So long,MegaBut in my script I have other folders and application that run in different locations...I can't get them to the include folder?
enaiman Posted May 15, 2007 Posted May 15, 2007 You have 2 choices: - use the Include folder - this is like a "fixed" referrence and it will be the same no matter where your script is located (#Include <>) - use the directory where your script is located (#Include " ") It is up to you. Take a look in the help at Include and FileInstall SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
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