For the preferences : <cfquery name="prefs" ....> SELECT folderdisplay FROM tblPreferences WHERE UserID = #session.userid# </cfquery>
<cfcookie name="folderprefs" value="#prefs["folderdisplay"][1]#"> For the directory listings : <cfdirectory action="LIST" directory="d:\" name="deedrive" sort="dirname ASC"> <cfoutput query="deedrive"> <cfif deedrive.type is "Dir" and ListFind(cookie.folderprefs,deedrive.name)> #name#<br> </cfif> </cfoutput> Hope that helps. Regards Stephen ----- Original Message ----- From: "FlashGuy" <[EMAIL PROTECTED]> To: "CF-Community" <[EMAIL PROTECTED]> Sent: Thursday, September 26, 2002 1:13 PM Subject: <cfdirectory > Where do I come up with these ideas! Argh.... > > I'm listing the contents of drive "D:\" on the server. Here is an example listing: > > inetpub > temp > work > test > data > > I also have a preferences template where the user can type in directories into a <input> box which would then be saved to a database. The database would then be queried > and that information dumped to a cookie for that session. The page would be refreshed and only those directories the user specified in the <input> box would be displayed > ignoring *everything* else. > > I know this can be done but I'm having trouble figuring it out the smarts. > > > --------------------------------------------------- > Colonel Nathan R. Jessop > Commanding Officer > Marine Ground Forces > Guatanamo Bay, Cuba > --------------------------------------------------- > > > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Archives: http://www.mail-archive.com/cf-community@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists