Right click context entries not showing up

Discussion and questions - donor version.
Post Reply
Message
Author
mikip
Posts: 3
Joined: 20.07.2020, 08:59

Right click context entries not showing up

#1 Post by mikip » 20.07.2020, 09:07

Hi,

Started using FeeeCommander a couple of months ago and really like it.

One thing though I can't see how this is not working. in Explorer, we have created some Right Click context entries which invoke various batch files that create a set of defined directories.

We did this by creating registry entries like this:

[HKEY_CLASSES_ROOT\Directory\Background\shell\Create Gemini Folders\command]
@="P:\\Software\\Tools\\CreateGeminiDirectories.bat"

However, in FreeCommander, when I right-click a folder, these don't show up?

Any ideas how I could get this to work?

Many thanks in advance

Mike

Marek
Author
Author
Posts: 2878
Joined: 10.04.2006, 07:48
Location: Germany
Contact:

Re: Right click context entries not showing up

#2 Post by Marek » 21.07.2020, 20:32

Could you show your example of the bat file?
How it works currently in windows explorer if you right click on one folder? Where will be the new folder created?

mikip
Posts: 3
Joined: 20.07.2020, 08:59

Re: Right click context entries not showing up

#3 Post by mikip » 02.10.2020, 08:44

Hi Marek,

Apologies, I thought I'd set the post to notify me when there was a reply but didn't get anything so missed your repsonse.

Basically, there appears to be 2 right-click context menus.
  • When you right-click on a folder or file which is the same one I see in FreeCommander. My commands do not appear in that menu and behave the same as FeeeCommander.
  • When you right-click the white space in Explorer (so no object), I get a different context menu and my entries are in this menu (sorry, can't seem to attach a screenshot but could send you one). I am unable to see this menu in FreeCommander. If I right click in the window and not a file or folder and choose context menu, I get the same as above

Batch file is very simple and looks like this

md "Documentation\AdminInternal"
md "Documentation\From Client"
md "Design\Examples"
md "Design\Resources"
md "SourceData\Original"
md "SourceData\Production"
md Testing
md Code
md Deployment

Thanks

Mike

Marek
Author
Author
Posts: 2878
Joined: 10.04.2006, 07:48
Location: Germany
Contact:

Re: Right click context entries not showing up

#4 Post by Marek » 03.10.2020, 12:57

Commands from background are currently not supported.
However, you can achieve your goal if you define your command under

Code: Select all

 HKEY_CLASSES_ROOT\Folder\shell\Create Gemini Folders\command
Define the command as:

Code: Select all

P:\\Software\\Tools\\CreateGeminiDirectories.bat "%1"
Modify your bat file as

Code: Select all

cd "%1"
md "Documentation\AdminInternal"
md "Documentation\From Client"
md "Design\Examples"
md "Design\Resources"
md "SourceData\Original"
md "SourceData\Production"
md Testing
md Code
md Deployment
Now you can use the command from context menu on the folder.

mikip
Posts: 3
Joined: 20.07.2020, 08:59

Re: Right click context entries not showing up

#5 Post by mikip » 05.10.2020, 10:05

Hi Marek,

Thanks for the reply.

That's great - Thanks!

I had to make a tweak to the batch file to this otherwise it wasn't changing directory.

cd /d %1

Reg file entry looks like this

@="\"P:\\Software\\Tools\\CreateSecureFilesDirectoriesRoot.bat\" \"%1\""

Just a quick question: Is there any setting to show this menu without clicking "context menu" each time?

Thanks

Mike

Marek
Author
Author
Posts: 2878
Joined: 10.04.2006, 07:48
Location: Germany
Contact:

Re: Right click context entries not showing up

#6 Post by Marek » 06.10.2020, 18:15

You can simply define new favorite tool.
Program or folder:

Code: Select all

P:\Software\Tools\\CreateSecureFilesDirectoriesRoot.bat
Parameter:

Code: Select all

%ActivDir%
With the %ActivDir% parameter you muss open the folder where you want create the subfolders.
In the bat file you do not need the line with "cd /d %1".

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 12 guests