FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to show a Folder
Posts: 76
Joined: Wed Oct 12, 2005 05:52 PM
How to show a Folder
Posted: Mon Mar 13, 2006 12:26 PM

Hi to all,
I need to show (like explorer does ) a folder to the customer where i placed same files.

Example: Folder to show is C:\MYDATA

tks

Piscicelli/Zingoni

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to show a Folder
Posted: Mon Mar 13, 2006 02:14 PM

If you just want the user to select a file I would use cGetFile().

cGetFile( <cFileMask>, <cTitle>, [<nDefaultMask>], [<cInitialDirectory>], [lSave], [lLongNames], [nFlags] )

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 76
Joined: Wed Oct 12, 2005 05:52 PM
How to show a Folder
Posted: Mon Mar 13, 2006 02:18 PM

No, i need only to show the files as IEXPLORER DOES

Tks

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to show a Folder
Posted: Mon Mar 13, 2006 02:48 PM

Piscicelli,

I'm not sure exactly what you want since Explorer can show files a number of different ways.

You can use the directory() function to get a list of files, then use a browse to browse the array.

If you want to show files as icons, take a look at TListView.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 76
Joined: Wed Oct 12, 2005 05:52 PM
How to show a Folder
Posted: Mon Mar 13, 2006 07:56 PM

i solved the problem simple using

waitrun("explorer.exe c:\mydata")

it works fine for my scope.
tks

Continue the discussion