Page 1 of 1

Norton Change Directory (NCD) Functionality

Posted: 01 Sep 2006, 10:22
by MarekB
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?

Re: Norton Change Directory (NCD) Functionality

Posted: 02 Sep 2006, 16:16
by SvA
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.

Posted: 03 Sep 2006, 09:34
by MarekB
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.

Posted: 03 Sep 2006, 19:01
by th.
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.

Posted: 03 Sep 2006, 22:08
by MarekB
Nicely solved. Cheers.

Posted: 03 Sep 2006, 22:25
by MarekB
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.

Posted: 04 Sep 2006, 00:07
by SvA
You can create a script fpr AutoIt or AutoHotkey to achieve this. Both programs are free and very versatile for many automation tasks.

Posted: 04 Sep 2006, 23:38
by th.
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).

Posted: 05 Sep 2006, 11:54
by MarekB
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

Posted: 06 Sep 2006, 22:56
by th.
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"

Posted: 08 Sep 2006, 09:43
by MarekB
Without your scripts it's unlikely I'd use Gol. Thanks again.