ashraful089 Posted August 8, 2022 Share Posted August 8, 2022 FileRun Test.rar main script running in FileRunTest folder, exe files are in folders into it and also in its sub folder. i want to run the "FileRunTest . au3 script to run .exe files one by one as listed in the script, i can run the exe file from the script dir. can anyone help me to make the script working to run exe file from its sub directory or folder under folder. Link to comment Share on other sites More sharing options...
Subz Posted August 8, 2022 Share Posted August 8, 2022 Do you mean something like: Run(@ScriptDir & "\Web\Subfolder\Filename.exe") ashraful089 1 Link to comment Share on other sites More sharing options...
ashraful089 Posted August 8, 2022 Author Share Posted August 8, 2022 is it possible without declaring the folder tree? means without declaring \Web\Subfolder\ Link to comment Share on other sites More sharing options...
Subz Posted August 8, 2022 Share Posted August 8, 2022 You can use relative references, although this is the same as using @ScriptDir unless you start using ..\ where you move up the folder structure. Run(".\Web\Subfolder\filename.exe") Link to comment Share on other sites More sharing options...
ashraful089 Posted August 9, 2022 Author Share Posted August 9, 2022 thanks @Subz your help will help me to complete the task Link to comment Share on other sites More sharing options...
ajag Posted August 9, 2022 Share Posted August 9, 2022 Maybe _FileListToArrayRec() does help you? Rule #1: Always do a backup Rule #2: Always do a backup (backup of rule #1) Link to comment Share on other sites More sharing options...
ashraful089 Posted August 9, 2022 Author Share Posted August 9, 2022 @ajag i think i dont need that while i can do the thing in a single line. little problematic cause i have to write full directory list. but if you help i want to learn FileListToArrayRec() Link to comment Share on other sites More sharing options...
rudi Posted August 9, 2022 Share Posted August 9, 2022 Pls. have a look into the help file system, there you will also find an example: https://www.autoitscript.com/autoit3/docs/libfunctions/_FileListToArrayRec.htm ashraful089 1 Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now