Jump to content

Recommended Posts

Posted

Hello, I was browsing the help file (as recommend by many members) & I found out a new way to include a file

I am using this:

#include "...\Includes\StringSize.au3"

But I get this error: Error opening the file

I have already re-checked the filenames

 

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

  • Moderators
Posted

TheDcoder,

If the file is in the standard include folder, or the personal folder set up as explained in the Adding UDFs to AutoIt and SciTE tutorial in the Wiki, then there is no need to use a path at all.

And you can only use one (current folder) or two (parent folder) dots in a path - you are using three in that code!

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Moderators
Posted

TheDcoder,

In that particular case the 3 dots are just shorthand for the include filename. Surrounding the name with either quotes or <> determines the order in which AutoIt searches for the file in the 2 folders I mentioned above - nothing to do with the path itself.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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
×
×
  • Create New...