Displaying folder contents

[brazen weep], you out there?

Hey there,

I'm looking for someone who may have an idea on how to create a folder-like widget that will display the contents of a folder, much like Windows would. Here's what I have in mind...

The theme I'm creating completely conceals Windows, but offers access to the Start menu, desktop icons, and My Documents via a password-protected Admin Panel. The Admin Panel is scripted and working extremely well, but I can't figure out how to create the widgets to "replace" Windows Explorer by displaying folder contents inside my widgets. Basically, I want to force users to rely solely on my theme and prevent access to Windows Explorer.

Any ideas?


.: EDIT :.
-------------
I just found something close to what I'm looking for. [brazen weep] created a FileLister and Launcher that does an excellent job of replacing Windows Explorer with one of his own creation. If there is a way to use the same basic idea to create a box containing just specific folders, and display icons rather than just filenames, then it would be the solution I've been looking for. Anyone know how this can be achieved? [brazen weep]?
2,926 views 6 replies
Reply #1 Top
Ahhh good to see someone having the same problem aswell,what i did was create a offline web browser with 'Control.Navigate2 "c:\"' which takes you to c:\ drive, from there you can go to control panel,my computer etc with your own browser, But the main problem im having is opening control panel,my computer by script,im not sure how to do this im a newbie and dont know how to write scripts for crap,

but if you can do this you will have a full windows explorer.i do belive my computer is a pidl,which navigate2 should be able to open?

just dont know how?

i thought about making a fake my computer with just shortcuts to C:, my Documents etc
but then im still stuffed for recycle bin.And i cant make proper shortcuts to control panel etc

any help would be great
Reply #2 Top
Ya, I thought about faking the folders, but I need them to be dynamic so that they reflect new files, etc. There are people out there who know how to do this. [brazen weep] has proven that. They just need to stop in and help us out.
Reply #3 Top
Ok here is how to do it, making a widget to replace windows explorer
1)Make a web browser with Activex control

2)Add Control.Navigate2 "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"

that should open you a window to my computer, but you have to make your border and controls

Control.Navigate2 "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
that one is for my documents but i dont know if it changes due to different usernames
Reply #5 Top
Okay, using the Control.GoBack command, I've created my back button to return to the last folder in the directory. However, when the back button is hit and the history is "null", I get an error. How do I detect the value that the button will be forcing to the browser? I want to disable the back button when the value reaches "null". Anyone?


.: EDIT :.

Found it. Here it is, if anyone wants to use it:

Sub Control_NavigateComplete2(pDisp, URL)
  If DesktopX.ScriptObject("Object").Control.LocationURL = "" Then
    'Action, such as Script.MsgBox("Oops")
  Else
    DesktopX.ScriptObject("Object").Control.GoBack
  End If
End Sub
Reply #6 Top
Xixao3D: I used something like this:

Sub Object_OnLButtonDown(x,y)
On Error Resume Next <--- Stops any errors so nothing thrown at you it just doesn't do anything.
DesktopX.ScriptObject("WebCtrl").Control.GoBack

End Sub