Jump to content

Recommended Posts

Posted (edited)

Hi folks

more silly questions.

I have to write an #include command for an UDF.

something like;

#include "C:\Main\ABC\Script DIR\ XXX.au3"

Problem here is that my directory is something like;

Posted Image

As you can well see I suck at drawing and that my target folder is not inside the script directory.

Basically I need to write the Include command from the @ScriptDIR and call a procedure in the arget DIR folder.

I don't want to use the full windows path "C:\Main\ABC\Script DIR\ XXX.au3" as it will change on every machine I put m y code on. It has to be derived from the Script directory. Any help?

regards

Rishav.

Edited by Rishav
Posted

thanks.

exactly what I was looking for.

But I am getting an error now when I use;

#include @ScriptDir & "..\resources\Functions\ChangeResolution.au3"

ERROR: illegal character in include directive

Posted

#include "..\resources\Functions\ChangeResolution.au3"

Posted

Sorry to pull up this old thread.

How do I go up two or more than two directories?

#include "..\..\Main.au3"

or

#include ".." & "..\Main.au3"

doesn't seems to work.

Posted

Hi foster., Thanks for the reply.

I don't think that will work. "..\..\" didn;t work so i doubt "..\..\..\" will work.

that said, I'll give it a try as soon as I reach home.

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
  • Recently Browsing   0 members

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