say, i have some path in clipboard
now, to navigate to this path i type in command line "cd " quote, press ctrl+v, quote
or to copy, same, but "copy "
i want to bind it to hotkey, but it seems there is no way.
am i right?
i wonder how in ten years there is yet no possibility to do that.
for user commands, parameters might be like target path, destination path and so on, but not clipboard content.. i'm so pissed off
working with clipboard
Moderators: Hacker, petermad, Stefan2, white
Atleast for the "CD" command you could use NirCmd.
Create a button or command with:
Create a button or command with:
Code: Select all
c:\PathTo\nircmd.exe exec show %COMMANDER_EXE% /O "~$clipboard$"
Good idea 
UserCmd.ini
Then
Configuration > Misc > assign shortcut (like Ctrl+Shift+C) to em_CDToClip
- - -
More to "/O /S /L=" at the help:
4. Configuration and switches
a. Command line parameters
.

UserCmd.ini
Code: Select all
[em_CDToClip]
cmd=%Commander_Path%\plugins\NirSoft\nircmd.exe exec show %COMMANDER_EXE% /O /S /L="~$clipboard$"
Configuration > Misc > assign shortcut (like Ctrl+Shift+C) to em_CDToClip
- - -
More to "/O /S /L=" at the help:
4. Configuration and switches
a. Command line parameters
.
-
- Junior Member
- Posts: 19
- Joined: 2014-06-23, 08:32 UTC
Then use a script in instead:zloidooraque wrote:if only nircmd could strip clipboard from spaces and quotes now! (=
[em_CDToClip]
cmd=myScript.vbs
myScript.vbs (pseudo code)
myVar = oIE.getClipboard
myVar = replace(myVar , qoute ,"")
myVar = replace(myVar , space, "")
WSC.run "%COMMANDER_EXE% /O /S /L="myVar"
- - -
But make this really sense?
"C:\Windows\Downloaded Program Files"
C:\Windows\DownloadedProgramFiles
- - -
Here is such script.
Save as *.vbs
.
Code: Select all
'// Test
strText = """ C:\Windows\Downloaded Program Files """
'//Get Clipboard
Set oIE=CreateObject("InternetExplorer.Application")
oIE.navigate "about:blank" : Do While oIE.ReadyState<>4 : WScript.sleep 50 : Loop
strCLIP = oIE.document.ParentWindow.ClipboardData.getdata("text")
oIE.Quit
'//clean-up
strCLIP = replace(strCLIP, chr(34), "")
strCLIP = trim(strCLIP)
'//Debug
MsgBox "<"& strText &">" & vbCRLF & vbCRLF & "<"& strCLIP &">"
'//execute command to TC (due to the env var, run this script from inside of TC!!!)
Set WSC = CreateObject("WScript.Shell")
WSC.run "%COMMANDER_EXE% /O /S /L=" & chr(34) & strCLIP & chr(34)
-
- Junior Member
- Posts: 19
- Joined: 2014-06-23, 08:32 UTC