Trying to force the file manager to behave in a certain way... Thread last updated on 2004-02-25 04:06:45

Posted by member 75348 on 2004-02-22 19:17:34

I'm fairly new to fooling around in popup.rc, so be gentle.

What I'm trying to do is:
1.Force the file manager to open on My Computer rather than My Documents AND trying to get it to do so without the file tree on the left.
2.Make an additional item in the menu to open My Documents, also without the File Tree (I already know how to do that first part, just from fooling around with it a bit today... It's the second part, getting it to open without the file tree, that's got me stumped).

My problem is that popup.rc doesn't seem do anything other than point to the file manager designated in the evar file, whereas I want to tell the file manager how to behave when it's opened.

Again, I'm fairly new to all this. Short and simple sentences, please.

Any help?

EDIT- I probably should have specified that I'm using explorer as my file manager.

Posted by member 2111 on 2004-02-22 22:48:19 link

Sleepwalker

If you edit your popup menu, you can add command line switches to the end of the command eg.

"$FileManager$" /e,c:\

By doing this, you can easily create multiple explorer popups that point to different directories or drives.

For your first problem, to open my computer and no tree, try this as the shortcut -

"$FileManager$" /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

For the second problem, My documents, create a shortcut that has the path -

"$FileManager$" /root,"Path to My Documents"

So in your popup file you could have two entries such as -

*Popup "explorer" "$FileManager$" /e,c:\
*Popup "my computer" "$FileManager$" /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

and that will create two menu entriesI hope that makes sense. I have done this on XP but it should work for other falvours of windows as well.

It had a typo I had to fix.

Posted by member 75348 on 2004-02-22 23:00:43 link

I'll give that a shot. Thank you very much.

Posted by member 75348 on 2004-02-23 01:30:44 link

It actually wound up looking a little different than that (trial and error, you know):

*Popup "file manager" "$FileManager$" /n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
*Popup "explorer" "$FileManager$" /n,C:\Documents and Settings\XXXXXXXXX\My Documents"


I'm guessing that it's the /n that does it... but what was the /e supposed to do?

Thanks again! You put me on the right track!

Posted by member 7 on 2004-02-23 03:07:54 link

The /e is responsible for the file tree on the left.

Posted by member 102398 on 2004-02-25 04:06:45 link