Jump to content
Sign in to follow this  
theguy0000

user's include directory

Recommended Posts

theguy0000

how would i find out the user's include directory?

I've been thinking something along the lines of incuding Misc.au3 (or any other include file) and finding the directory of that...any ideas?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
LxP

There is no need to programmatically find this information. If a user has installed AutoIt on their computer using the provided installer, writing your #include line like this:

; take note: angled brackets
#include <Misc.au3>

will have AutoIt include it from the user's Include directory.

Edit: And if you want the path for some other reason, you can most likely deduce it from the information provided in HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt. You shouldn't rely on users installing AutoIt with the installer though (in which case no key will exist).

Edited by LxP

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

i bet its

C:\Program Files\AutoIt3\Include\

just i guess i could be COMPLETELY off


[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
Share on other sites
theguy0000

i bet its

C:\Program Files\AutoIt3\Include\

just i guess i could be COMPLETELY off

<{POST_SNAPBACK}>

thats what it is for me, but it could be different for some other users.

is there no way to find the location of an included file?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
theguy0000

There is no need to programmatically find this information. If a user has installed AutoIt on their computer using the provided installer, writing your #include line like this:

; take note: angled brackets
#include <Misc.au3>

will have AutoIt include it from the user's Include directory.

Edit: And if you want the path for some other reason, you can most likely deduce it from the information provided in HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt. You shouldn't rely on users installing AutoIt with the installer though (in which case no key will exist).

<{POST_SNAPBACK}>

i know about the angled brackets thing, but thanks for replying. and yes, i want to find the location of the directory, to do more than incuding it.

edit: typo

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
LxP

is there no way to find the location of an included file?

<{POST_SNAPBACK}>

You could always do a DOS hard drive search for typical include scripts...

Share this post


Link to post
Share on other sites
theguy0000

i guess that will work


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
theguy0000

are you sure there is no other way? doing it this way takes so long

- Matt :whistle:


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

this is somewhat time consuming..it does search ALL files/directorys

dir /s C:\ >> C:\zlist.txt
find /I "\Include" C:\zlist.txt >> C:\zsearch.txt

thats straight off command prompt

so in autoit just put a _RunDOS in front of it and you should be good :whistle:

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.