Jump to content

Default Location


Recommended Posts

Hi,

Is it possible to get the default location by autoit.

for eg: If I have a script inside C:\test\test2\excelCOM_UDF.au3

In 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.html

Is this possible in AutoIT if so how do I go about giving the link... I treid ..\..\test2\excelCOM_udf.au3 but didn't work?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Hi,

put the udf.au3 into the include folder. :-)

So long,

Mega

But in my script I have other folders and application that run in different locations...I can't get them to the include folder?

Link to comment
Share on other sites

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 :)

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...