Paste Path from Clipboard into TC and go to folder ('CD')

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
Munango-Keewati
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-19, 18:45 UTC

Paste Path from Clipboard into TC and go to folder ('CD')

Post by *Munango-Keewati »

First, many thanks to Mr. Ghisler for the new update. The editable path line is much appreciated.

I often have a situation where I need to copy a path from email to TC through the clipboard. As far as I can tell, there's no paste-from-clipboard command for text strings. I'd like to be able to construct a button or shortcut key which, when pressed, would change the left or right window to display the clipboard path.

Is it possible to do this now (something I've missed), or could such a command be added in a future upgrade?

Thanks!
W!ke
Junior Member
Junior Member
Posts: 15
Joined: 2003-02-20, 20:52 UTC

Post by *W!ke »

HI, you can try the following.

Christian added the new edit path option in tcmd 5.51, please look at the help how this works.

But pasting paths to the commandline is faster, so you can use the following.
Make sure you have the option enabled so that when you press a letter it will automatically appear in the commandline (options-->operation-->Quick Search--> you can use any option except the "Letters only" one, then it will work.)

Now what I did was the following, to open a path in one of the panes you can paste the path into commandline and at "cd " infront of it, if you skip the "cd " then the path is opened in explorer :(

To add this all under a button, you can make a .vbs file in notepad(or other text editor)

Paste the follwing in the file :

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "cd "
WshShell.SendKeys "^v"
WshShell.SendKeys "~"

Save the file as .vbs (eg paste.vbs) apply it to a button and you can paste paths in the commandline and open them in the panes.

Hope it's clear.

Greetings Mike.
User avatar
Munango-Keewati
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-19, 18:45 UTC

Post by *Munango-Keewati »

Thanks for the script, which is very smooth and does exactly what I want to do -- except that TC doesn't display the pasted directory when I enter something like

cd C:\path\filename.doc

on the command line. Is there some ini setting I need to adjust? In my setup, the above line plus ENTER does nothing.

By the way, the ini settings are really under documented. It took me quite a while to realize I had to set one to get the new inplace-edit-path feature to work. I think the same was true of the comments feature.

Thanks again!
W!ke
Junior Member
Junior Member
Posts: 15
Joined: 2003-02-20, 20:52 UTC

Post by *W!ke »

Hi,

You can't use "cd" in a path that contains a file in it.
cd stands for change directory, not open file ;)

Greetings Mike.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

W!ke wrote:and at "cd " infront of it, if you skip the "cd " then the path is opened in explorer
No Explorer anymore... :) Try again. "cd" is not needed anymore. And probably your script too...
Munango-Keewati wrote:the ini settings are really under documented. It took me quite a while to realize I had to set one to get the new inplace-edit-path feature to work.
There is also such file as "history.txt" that has a lot of useful info too :). There was even a poll about it in the old forum.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 23-02-2003 01:49:50 +0000 Valentino wrote:

V> No Explorer anymore... :) Try again. "cd" is not
V> needed anymore.


Val, did i missed something? CL still opens a path w/o "cd" in explorer for me.[/face]
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Black Dog wrote:Val, did i missed something? CL still opens a path w/o "cd" in explorer for me.
Strange... For me, path without cd in TC's command line does open that dir in TC's source pane, no crippled Explorer anymore... I bet I read about it somewhere but can't remember where, maybe on this or russian forum. Couldn't find it neither in history.txt nor in help. Seems like Christian must clear the case...
User avatar
JackFoo
Senior Member
Senior Member
Posts: 373
Joined: 2003-02-05, 19:53 UTC
Location: ERROR

Post by *JackFoo »

Hmm, mine opens in Explorer as well... w2k sp3
P.S. Are you certain it was fixed in 5.51? I can't find a reference in the History.txt.

Cheers.
W!ke
Junior Member
Junior Member
Posts: 15
Joined: 2003-02-20, 20:52 UTC

Post by *W!ke »

Hi Valentino,

Does not work for me, still need to add "cd"
Your not confusion the "commandline" with the "edit path" feature?

Greetings Mike.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

:shock:
No, I'm not confusing. CL is at the bottom whereas file list header (with edit path feature) is at the top :D.
Christian! Help!!! Why my TC works so great?! :)
Am I alone? Please respond anybody who doesn't need cd too!
I haven't recompiled TC :D nor cracked it. Don't understand. Maybe I found a bug :lol:
W!ke
Junior Member
Junior Member
Posts: 15
Joined: 2003-02-20, 20:52 UTC

Post by *W!ke »

Hi Valentino,

Strange indeed.
What OS are you using?
And it has nothing to do with changing this settings somewhere: "shell=totalcmd.exe"?????

Greetings Mike.
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

2W!ke
OS is WinNT 4 Workstation SP6a. Didn't change shell, nor installed any command line catchers or smth.
W!ke
Junior Member
Junior Member
Posts: 15
Joined: 2003-02-20, 20:52 UTC

Post by *W!ke »

Christian this one is yours to solve I guess :D

Thanks all.
User avatar
Black Dog
Power Member
Power Member
Posts: 1024
Joined: 2003-02-05, 22:17 UTC
Location: Odessa
Contact:

Post by *Black Dog »

[face=courier]On 23-02-2003 22:09:42 +0000 Valentino wrote:

V> OS is WinNT 4 Workstation SP6a.

Well, let's consider it some kind of miracle ;). Such a "miracles" happens sometimes under NT4, for example I can copy directories to nul with Commander...[/face]
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

I can copy directories to nul with Commander...
I'm scared to test it :shock:. What's happening to test dir in this case? Will NTFS drive remain consistent :)?
Post Reply