Recent

Author Topic: To select a drive  (Read 4682 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
To select a drive
« on: March 08, 2011, 04:40:53 pm »
How can we select 'only' a drive without directory ?
« Last Edit: March 08, 2011, 06:24:21 pm by asdf »
Lazarus 1.2.4 / Win 32 / THAILAND

Laksen

  • Hero Member
  • *****
  • Posts: 754
    • J-Software
Re: To select a drive
« Reply #1 on: March 08, 2011, 09:52:35 pm »
That's probably not doable in a crossplatform way. What is a drive on a UNIX like machine? :)

asdf

  • Sr. Member
  • ****
  • Posts: 310
Re: To select a drive
« Reply #2 on: March 09, 2011, 09:07:49 am »
That's probably not doable in a crossplatform way. What is a drive on a UNIX like machine? :)

I'd like to separate the directory for storing data, not in the same directory with the application.

For example, in my project/application, I will let the admin to specify a drive first, like C:\, E:\ or F:\  etc.
And then my project/application will create and give a specific word to name a directory in such above drive.

What should be done to apply for such above matter ?
Lazarus 1.2.4 / Win 32 / THAILAND

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: To select a drive
« Reply #3 on: March 09, 2011, 04:37:59 pm »
Why not use GetAppConfigDir for that?

Bart

 

TinyPortal © 2005-2018