DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

file path question....

Solved!
Go to solution

Yet another really simple question from me, as I've been away from DIAdem for too long.

 

I have a program which, in part of it, needs the user to select the path that they want a set of a few hundred files to be saved in. I've tried using FileNameGet, but this requires me to select a file in the directory i want to save into to record the path. I just want the user to have to select the folder once.

 

I've tried this:

 

'===============

dim newfilepath

If  (FileNameGet("ANY",,,,,,"Select the directory to save the new files into:") = "IDOk") Then
  newfilepath=FileDlgDir
else
End If

'===============

 

Can I select a directory instead of a file?

0 Kudos
Message 1 of 2
(4,001 Views)
Solution
Accepted by topic author xxxtomxxx

Hello Tom!

 

Yes, with the PathNameGet() command.

 

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
Message 2 of 2
(4,000 Views)