DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting a String from a selected path

Solved!
Go to solution

Hello, 

 

I have the following piece of code in my script (which works fine)

 

dim result : result = DirListGet("C:\","*.adf","filename","FullFileNamesRecursive")

 

Instead of just using the "C:\" directory, I would like to prompt the user to choose one.

I tried using Application.DlgPathSelect  as well as PathNameGet to select a path, but I don't know how to put a String representation of the selected path into the DirListGet method above. 

 

Thanks in advance, 

Omar

0 Kudos
Message 1 of 2
(4,120 Views)
Solution
Accepted by Meky

Hello Omar,

 

use it like this

 

if "IDOk" = PathDlgShow("Select a directory for adf files", "C:") then
  dim result : result = DirListGet(OutPutPath,"*.adf","filename","FullFileNamesRecursive")
end if

Greetings

Andreas

Message 2 of 2
(4,117 Views)