Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am using ShellExecute(0,'open',m.lcFolder,'','',1) to display files

Status
Not open for further replies.

titoneon

MIS
Dec 11, 2009
335
US
Hi Again,
I have this code, to display files from a folder but i need to display the files as details, instead of listing or tiles or whatever else, i just need them to be displayed as Details, any sugestions, this codes resides in the Command click of a Button

Local lcFolder
lcFolder = Alltrim(Thisform.txtfolder.Value)
If !Empty(m.lcFolder)
ShellExecute(0,'open',m.lcFolder,'','',1)
Else
Messagebox('Please select the folder you want to view first!',64,'Opppppssss!')
Endif

Thanks
 
ok Mike, i did it.
Still does nor accomplish what i wanted, that is to open the folder and display the files in DETAILS STYLE.
i don't want to bother you with this anymore, you are busy guy and very nice person, don't worry, i will let them to select the way they want to View it the files
Thanks
 
> i will let them to select the way they want to View it the files

That's the best you can do. Also it shouldn't be our job to change a system dialog look, we can point the users to where they can determine the settings as needed.

Bye, Olaf.
 
If you've got it working the way you want it, except that it doesn't put it into Details view, then it's just a matter of adjusting the keystrokes that you send with SendKeys. I've given you all the keystrokes you need. It's just a matter of sending those keys, in the right order, at the right time.

That said, if you are willing to let the user decide for themselves which view to use (which I have said all along is the best course of action), then you might as well use your original ShellExecute() code. That has the advantage of not being susceptible to changes in keystrokes in future versions of Windows.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Thanks a lot guys, yeah i just wanted to give them that approach of "DETAILS" as inside of those folders are a lo of files with long names, that waa one of the reason and the other was a challenge just to learn something new.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top