Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Tom

Pages: 1 [2]
26
Support and Feedback / Re: Shortcut to switch between Panel.
« on: November 30, 2016, 07:48:34 »
Hard to find :)

Tab key to switch from/to left/right panel.
Ctrl-Tab to switch between Tabs.

27
If you only have x.cmd (no x.bat) and run "x 1 2 3 4 5" instead of "x.cmd 1 2 3 4 5" then the output is correct. So I think .cmd is misinterpreted by MC, most likely interpreted as alias command or something else.

Can you debug the MC source while running the above two commands? The first runs correct, the second in another wrong way. Debugger should be able to tell where it's going wrong.

28
Ok, I did some further tests. If the extension is .bat then the parameters are send but if the extension is .cmd then the parameters are not send. So if you rename x.bat to x.cmd and type "x.cmd 1 2 3 4 5" you'll get empty output for the parameters.

Unfortunately all of our batches have the extension .cmd. As far as I remember in early times there existed command.com (16bit) an cmd.exe (32bit) and we used .bat for command.com batches and .cmd for 32bit batches.

Anyway, if I open a command line (cmd.exe) and run "x.bat 1 2 3 4 5" and "x.cmd 1 2 3 4 5" then I get the same output and this should also be the behaviour within MC. It's strange that MC handle this extensions differently and I have no idea why.

Of course I could type in MCs command line:
cmd /c "x.cmd 1 2 3 4 5"
and this would give the correct and expected output. But that would be only a workaround, no solution.

Can this different behaviour for .bat and .cmd be influenced in any settings? Or must this be changed internally in a future MC version?

Regarding the focus: In Explorer Panel settings, keyboard handling I tagged Quick search, untagged Search field, untagged Search for text parts anywhere in the file/folder name and defined Search keys to "Letter only / will disable "Forward keys to command bar".

If the focus is in one of the panels, then typing should position the focus to the next filename with the typed characters. That's ok and well known from other commanders. If the focus is in the command bar then the typing should go to the command bar. This is also well known from other commanders and MC works the same way.

But when I use a hotkey to send the filename (or panel directory) to the command line then MC should set the focus to the command bar since it is highly expected that I want to use the command bar for the next action. With the other "Search keys" settings you can distinguish between normal letters (for command bar) and ALT+Letters and CTRL+ALT+Letters (for active panel). In my Search keys setting "Letters only" the Quick search keys and the command bar keys would be both normal not altered keys. So it would be a great help to switch the focus to command bar if any internal command is choosen, which sends something to the command bar.

29
I have a bunch of batches like InstallSoftwareXY.cmd which install the software XY on a remote PC. This batches expect the hostname as first parameter. Actually I cannot run this batches from MCs command bar like on my previous used commander programs. Let me try to explain what I usually want to do.

Normally I have the focus in one panel on the file InstallSoftwareXY.cmd. I use Ctrl+Enter to parse the file name  with following space character to the command bar. (Unfortunately the focus is not moved to the command bar). I type the target hostname manually as parameter after the parsed file name. (In MC I have to click twice in command bar, 1st will mark whole command bar, 2nd to set the focus after the file name and the following space character while in other commanders I can type directly the hostname as they set automatically the focus after the parsed file name ).

Then I press Enter to send this command (file name with following space character and target hostname) to the command line.

I don't see how MCs quicklaunch bar could really help with this.

Would it be possible to parse the whole commands given in MCs command bar to the OS command line in a future MC version? I fear that this is a KO criterium for my (and my colleagues) MC usage since every other commander I know would parse the parameters from the command bar. No possibility to type parameters on a command bar would be a very bad restriction which would not be accepted.


30
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 17, 2016, 20:54:55 »
Ok, tested with W7. In W10 the taskkill command should include the /F (aka force) parameter. Otherwise only an end signal is send to the process (which is then ignored). With the command taskkill /F /IM "DisconnectDialog.exe" the process is forced to be killed.

31
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 17, 2016, 20:34:18 »
Found a quick and dirty way to launch the disconnect wizard with F12 with help of a small AutoIt script.

Create a file called DisconnectDialog.au3 with the following lines:
Local $hWnd = WinGetHandle ("[CLASS:MultiCommander]")
#include <WinNet.au3>
_WinNet_DisconnectDialog( $hWnd )
WinWaitActive( $hwnd)
WinClose($hWnd)
Exit 1

Then compile this with Aut2exe.exe. This creates a file called DisconnectDialog.exe. This executable opens the disconnect wizard, which works as expected. Unfortunately this exe never ends. It just pauses the script. In the system tray an AutoIt icon called DisconnectDialog.exe is still running. If you run this exe several times you'll have several AutoIt icons in the system tray. I found no way to auto-terminate the AutoIt script from the script itself.

So I also created a batch called DisconnectDialog.cmd with the lines:
@echo off
taskkill /F /IM "DisconnectDialog.exe" > NUL:
start DisconnectDialog.exe

If DisconnectDialog.exe was started before, the process is killed. To see no error message in case that no old process DisconnectDialog.exe exists I send the output of the taskkill command to nirwana.

Put the two files DisconnectDialog.cmd and DisconnectDialog.exe in a directory found in path (e.g. C:\Windows). Then just create a user defined command which runs DisconnectDialog.cmd and define a hotkey F12 for this.

So you could run the disconnect wizard as often as you want but you will have at max only one AutoIt icon in system tray.

Anyway, would be better if these wizards would be included as commands in MC in a future version.

32
Create a batch called Test_command_bar_parameters.cmd with the following lines:
@echo off
echo file name = %0
echo Parameter 1 = %1
echo Parameter 2 = %2
echo Parameter 3 = %3
echo Parameter 4 = %4
echo Parameter 5 = %5
pause

Open a command prompt (cmd.exe) and run the command:
Test_command_bar_parameters.cmd This is a simple Test

You will get the following output:
file name = Test_command_bar_parameters.cmd
Parameter 1 = This
Parameter 2 = is
Parameter 3 = a
Parameter 4 = simple
Parameter 5 = Test
Press any key to continue . . .

Now run the same command from MCs command bar and you will get the output:
file name = "D:\Test_command_bar_parameters.cmd"
Parameter 1 =
Parameter 2 =
Parameter 3 =
Parameter 4 =
Parameter 5 =
Press any key to continue . . .

So only the first "word" is parsed from MC to the command prompt.

I have this behaviour with MC v6.4.8 (build 2265) 64 bit Edition on W7 and W10. Is this a bug or depends this from my settings?

33
Tips and Tricks / Good external CSV Viewer
« on: October 04, 2016, 21:19:04 »
I'm not sure where to post tips for good external viewers/editors for MC. Coming from Altap Salamander I was missing a good csv viewer which could handle different formats (delimiter, quotes) itself and where I'm able to mark and copy a column (e.g. only hostnames from an exported csv report).

Found this:
http://csvquickviewer.com/

Unfortunately only in english but otherwise exactly what I was looking for.

34
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 04, 2016, 21:03:24 »
As I already wrote, a right-click on a drive letter in MC drive bar will show the disconnect command for this single drive. So it's already possible to disconnect from MC.

Anyway, other Commander use F12 to launch the "Disconnect Network Drive Wizard" (e.g. Altap Salamander, DoubleCmd). So I'm familiar with this key. And you can disconnect several drives at once from the wizard.

As far as I found hints, usually the WNetDisconnectDialog function (https://msdn.microsoft.com/en-us/library/windows/desktop/aa385440(v=vs.85).aspx) is used to launch the disconnect wizard but since Windows 2003 exists no more connection to the shell32.dll, so it cannot be launched from Rundll32. Instead it's related to mpr.dll.

35
Unbound by default would be sufficient.

Altap Salamander with german keyboard has this keys on the 2 keys left from Backspace key. As far as I can see keycode 219 and keycode 221. Though, on pictures of english keyboard layouts the square brackets are 1 row below. Anyway, I would assign this two keys (Ctrl+ß, Ctrl+´) because I'm already familiar with them.

36
That would be great, thanks. The reason that other Commanders choose these keystrokes is that the squared brackets [ and ] remind to the form of the left and right panels. So it's easy to remember which keystroke for which panel.

37
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 03, 2016, 15:06:18 »
Done. F11 now starts the Map Network Drive Wizard.

Does anybody knows how to start the Disconnect Network Drive Wizard? Unfortunately the command
rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL Disconnect

does not work anymore in newer Windows versions.

38
Yes I know because I use german keyboard layouts. Anyway, I know that [ and ] are on the english keyboard the two keys before the backspace keys. And that would be were I would config the two keystrokes.

39
With Ctrl+Enter you can paste the focussed dir name or file name to the command bar. With Ctrl+P you can paste the focussed dir or file name including the full path to the clipboard (and paste it with Ctrl+v to the focussed command bar).

Sometimes I need to paste only the current directory to the command bar. Therefore I suggest to add the following key strokes:

Ctrl+[ Insert the full name of the current directory in the left panel to the
Command Bar (as shown under the Dropdown list, so with trailing \)

Ctrl+] Insert the full name of the current directory in the right panel to the
Command Bar (as shown under the Dropdown list, so with trailing \)

Any suggestions how this could be achieved with user defined commands and keyboard customization are welcome.

40
Ctrl+Enter is already used to paste the focussed directory name or focussed file name to the command bar. And this should not be changed because this was used for decades in several Commander variants.

41
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 03, 2016, 11:10:29 »
Ok, I found what you told. But NET: only shows the servers and shares in the same network where my own PC resides. At work we devided the network into several virtual LANs (VLANs). And the network discovery only sees servers and shares within the own VLAN. As far as I understood this is due to the fact that the used protocol for network discovery isn't routed between the VLANs.

So sometimes I still would like the "Map Network Drive Wizard" to connect a drive letter to a Windows share in other VLANs which I cannot "see" with NET:.

What would be the problem to add the command
"Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect"
globally to a key? I would prefer F11 for "connect network drive".

I'm new to MC, so I have no experience yet with user defined commands and the keyboard customization. I'm pretty sure this can be done locally but I also think this would be of general interest.

42
Feature Requests and Suggestions / Re: Map Network Drive Wizard
« on: October 02, 2016, 19:13:20 »
I'm not sure where you are able to right-click on a network share to see this command. I have set the Commander Style Look& Feel, no tree view visible.

43
I just checked my settings. The behaviour depends on the following registry value:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ShowDriveLettersFirst

If ShowDriveLettersFirst = 0 (= Default value) then you have

Explorer: "c$ (\\localhost) (R:)" = "<Share> (<Server>) (<Device>) "
MC: "(R:) c$ (\\localhost)" = "(<Device>) <Share>  (<Server>)" 


I already changed the value to 4, so that the explorer has the drive letter first:
ShowDriveLettersFirst = 4  (DWord 32bit) which gives

Explorer: "(R:) c$ (\\localhost)" = "(<Device>) <Share> (<Server>)"
MC: "(\\localhost) (R:) c$" = "(<Server>) <Device>) <Share>"

So the only chance to get the same settings in Windows Explorer and MC would be that MC respects the registry value ShowDriveLettersFirst.

44
Feature Requests and Suggestions / Map Network Drive Wizard
« on: October 02, 2016, 16:06:54 »
I'm new to MultiCommander, maybe I don't know yet all of the many features. As IT employee I have often to work with other devices, so I use often mappings to network shares. I miss functions to connect network shares to drive letters. I know that you can simply start the "map network drive wizard" (known from Windows Explorer) with the following command:
Rundll32 Shell32.dll,SHHelpShortcuts_RunDLL Connect

I think I could create a user defined command but maybe this would be of public interest and could be generally included to MC.

Unfortunately there is no known command to show the disconnect network drive wizard (known from Windows Explorer) but right-click on a drive letter in the drive bar will show the disconnect command for this single drive.

45
If you use drive letters for UNC network paths, then the drive letter is shown between server and share.

Example: In Command window you can set an example network path to your local drive C:
net use R: \\localhost\c$

Then in the Device Dropdown this is shown as:
(\\localhost) (R:) c$

I would prefer to see the drive letter first:
(R:) (\\localhost\c$)

Is there any chance to set the drive letter to the left side?

Pages: 1 [2]