Jump to content

File Explorer window prompt to store file location to variable?


Recommended Posts

Hi guys, I tried looking for this answer but I couldn't find it through a google search so I'm going to attempt this here.

I'm trying to make a script that has all of the configurations of installation and settings changes hard coded but I want the user to be able to run the program installer from wherever they want including a UNC path and despite file name. I'm brand new to this and haven't started working with GUIs yet but I got a script working that allows me to install and configure my first program. However, it runs via the local path of the script: 

                                                                                                                  Run(@ScriptDir & "\ClassicShellSetup_4_3_1.exe")

I'd like to have a variable set in the Run() function parameter that points to a file path so that the program can run despite location and set that variable as a permanently saved variable that can be invoked when the program is run.

Run($FilePath)

The reason I want to do this is because we have alot of different clients and I want to set their installers path once so if a tech comes in they can run a client automation program install from the server after the installer path is set once.

I'd like to use the file browser so they can type a UNC path to the server share and select file path so it passes it and saves the value and the AutoIT script handles the file from there.

I am not nearly as pro as you guys so I'm sorry if this is a stupid question. This is my first day working on this. Any help would be greatly appreciated!

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

    No registered users viewing this page.

×
×
  • Create New...