Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get accessed drives and folders on the drive
Message
From
12/10/2006 11:09:21
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01161467
Message ID:
01161482
Views:
12
Thanks the getdir() command is what I was looking for. I missed it in the help.

The reason I asked is the I need just the drive and folder, getfile and locfile only work if file already exists which is a different case.


>But why, when you could just use GetFile(), GetDir(), LocFile() ?
>
>>I would like to create a form similar to to one in a FoxPro for DOS 2.6 application.
>>
>>
>>      ----------------------------------------------------
>>      |                                                  |
>>      |                    ----------------------------  |
>>      |   Available drives |drop down of drive letters | |
>>      |                    ----------------------------  |
>>      |                                                  |
>>      |                    -----------------------       |
>>      |  Avaliable folders |drop down of folders |       |
>>      |                    -----------------------       |
>>      |                                                  |
>>      |    a text box where user could enter the         |
>>      |      the filename.extension                      |
>>      |                                                  |
>>      ----------------------------------------------------
>>
>>where availaible drop down list of folders would be populated after a drive letter is selected and then it would be enabled.
>>
>>My problem is how to get the first two drop downs (available drive letters and then folders on that drive). Is this possible? If so how.
>>
>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform