Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing .au3 file from .au3 file

Tags:

autoit

How can I access a .au3 file in "My Documents/Downloads" folder from another .au3 file?

I know how to access the file from the desktop from this code:

Run(@AutoItExe & ' "' & @ScriptDir & '\file2.au3"')

But I can't access it in "My Document/Downloads" folder. Basically I want to recursively call the same .au3 file again and again.

like image 256
Rizwan606 Avatar asked Dec 17 '22 12:12

Rizwan606


1 Answers

Just as an alternative, the way to run a program in the folder you want is:

Run(@AutoItExe & ' "' & @MyDocumentsDir & '\Downloads\file2.au3"')

Furthermore, if you want a method like the other one then you could use #include inside the loop.

like image 163
Matt Avatar answered Dec 28 '22 17:12

Matt