I need the user to input the location of a file so that my script can open that file and perform some tasks. I wrote code that allows the user to manually type in the full directory of the file using a simple input box.
$Input1 = InputBox("InputBox name","Please enter the location of the file. (C:\Users\sjohnson\Desktop\file.xlm)")
This is not a very efficient or user friendly way to do this, it is a pain for the user to type the full location of the file.
I would like to have some type of "Windows Explorer" type input method, where the user can browse through disk drives and folders to select the requested file. How can I accomplish this? Is there any scripts already written that do this?
Another possible solution would be a drag and drop box, where the user could just drag and drop the requested file.
Any help will be greatly appreciated.