Norton Change Directory (NCD) Functionality

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Norton Change Directory (NCD) Functionality

Post by MarekB » 01 Sep 2006, 10:22

My C drive has over 15000 folders and I really miss the good old days of being able to type a few characters of a directory's path and *instantly* seeing which folders match that criteria and then switching to one of those folders.

http://www.softpanorama.org/OFM/norton_ ... ones.shtml

Any plans for something similar in Salamander?

In the meantime I been searching for tools that could integrate with SS and found this freeware app called GOL...

http://members.aol.com/GTItools/gol.htm

http://members.aol.com/GTItools/download/gtigol.zip

My problem is that although GOL allows me to specify an Alternate file manager to launch with the "found" path with, I am unable to get Salamander to launch and get the error "Invalid Comamand Line Paramters". Can someone get this to work?

User avatar
SvA
Posts: 452
Joined: 29 Mar 2006, 02:41
Location: DE

Re: Norton Change Directory (NCD) Functionality

Post by SvA » 02 Sep 2006, 16:16

MarekB wrote:My problem is that although GOL allows me to specify an Alternate file manager to launch with the "found" path with, I am unable to get Salamander to launch and get the error "Invalid Comamand Line Paramters". Can someone get this to work?
The message box giving you this error message also gives you the parameter you ought to use.

in the File Manager field, after SALAMAND.exe all " -L" (without the quotes) if you want to ger the folder in the left panel, " -R" if it should go to the right.

MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Post by MarekB » 03 Sep 2006, 09:34

That's exactly what I'm doing ie "C:\Program Files\Servant Salamander 2.5 RC1\SALAMAND.exe -L "

I suspect the problem is that GOL truncates the space after -L.

BTW I've managed to get GOL to work with TC, which accepts Path as a parameter without the -L requirement.

The real solution of course is a searchable (and/or filterable) Tree Mode in Salamander.

th.

Post by th. » 03 Sep 2006, 19:01

The problem is that gol doesn't put the path name of the target directory in "" so Salamander is confused with the command line parameters if there is a space in the path name. So here is a little VBScript that does the trick.

Create a file e.g. c:\tools\sal.vbs with this content:

Set objArgs = WScript.Arguments
cmd="""C:\Programme\Servant Salamander 2.5 RC1\SALAMAND.exe"" -L """
For Each strArg in objArgs
cmd=cmd & strArg & " "
Next
cmd=cmd & """"
Set sh = WScript.CreateObject("WScript.Shell")
sh.Run cmd

In gol options set the file manager command line to:

wscript c:\tools\sal.vbs

The path name to salamand.exe in the script has to be set according to your system of course.

MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Post by MarekB » 03 Sep 2006, 22:08

Nicely solved. Cheers.

MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Post by MarekB » 03 Sep 2006, 22:25

One more thing... Do you think its possible to modify the script to change the directory of the active pane of the 'foremost' Salamader session. (Using Commands > Change Directory) This is preferable as it avoids launching multiple Salamander sessions.

User avatar
SvA
Posts: 452
Joined: 29 Mar 2006, 02:41
Location: DE

Post by SvA » 04 Sep 2006, 00:07

You can create a script fpr AutoIt or AutoHotkey to achieve this. Both programs are free and very versatile for many automation tasks.

User avatar
th.
Posts: 116
Joined: 04 Sep 2006, 23:09
Location: Germany

Post by th. » 04 Sep 2006, 23:38

Here it comes:

Set objArgs = WScript.Arguments
target=""
For Each strArg in objArgs
target=target & strArg & " "
Next
Set sh = WScript.CreateObject("WScript.Shell")
bFound = sh.AppActivate(", 1. November 2006")
if bfound then
sh.SendKeys "+{F7}"
sh.SendKeys target & "{ENTER}"
else
sh.Run """C:\Programme\Servant Salamander 2.5 RC1\SALAMAND.exe"" -L """ & target & """"
end if

Please notice that the search string for the AppActivate function has to be modified to match the rightmost part of the title of your Salamander window if it is different from mine (German).

MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Post by MarekB » 05 Sep 2006, 11:54

Works great. Thank you.

The script for my English Salamander installation is as follows:

Set objArgs = WScript.Arguments
target=""
For Each strArg in objArgs
target=target & strArg & " "
Next
Set sh = WScript.CreateObject("WScript.Shell")
bFound = sh.AppActivate("November 2006")
if bfound then
sh.SendKeys "+{F7}"
sh.SendKeys target & "{ENTER}"
else
sh.Run """C:\Program Files\Servant Salamander 2.5 RC1\SALAMAND.exe"" -L """ & target & """"
end if

User avatar
th.
Posts: 116
Joined: 04 Sep 2006, 23:09
Location: Germany

Post by th. » 06 Sep 2006, 22:56

Thank you for letting us know about gol.
I find it very useful in combination with Salamander.
Here's another little script to set the focus to the gol window (or start it if isn't already running). Bind it to a global hotkey and you can change to the directory of your desire without using the mouse.

Set sh = WScript.CreateObject("WScript.Shell")
if not sh.AppActivate("gol - Go Outlook!") then sh.Run "C:\TOOLS\gol.exe"

MarekB
Posts: 6
Joined: 01 Sep 2006, 09:26

Post by MarekB » 08 Sep 2006, 09:43

Without your scripts it's unlikely I'd use Gol. Thanks again.

Post Reply