Forum Discussion

neeraj_kumar's avatar
neeraj_kumar
New Contributor
12 years ago

Navigate to a folder

The scenarios is this:

I have to store a path in a text field. I am reading the path from a xml file. There is a button from browsing. 

Clicking the button open up the windows file explorer. I can select the folder and click on the OK button. This will store the path in the said text field.

How can I do it in a very efficient way?

Neeraj





  • krupa_luke's avatar
    krupa_luke
    Occasional Contributor
    Hi Neeraj,



    I am not sure I understand, but you can use aqFile and aqFileSystem for working with files / reading content combined with aqString (or xpath) in order to extract path from file.
  • @Lukas

    Sorry about the unclear language.

    The scenario is this:

    The application needs to know the path of a folder where some files can be stored. E.g: D:\folder1\folder2

    There are 2 options for that:

    1. Textbox: edit the path directly in a textbox in the application. OR

    2. Button: clicking on it opens up a Windows explorer window where you select the right folder and click on OK button. (This eventually changes the path displayed in the textbox in 1.)



    Is there a good way to automate option 2?