Can "Copy as path" be enabled permanently without Shift

Page 2 of 2 FirstFirst 12

  1. Posts : 5,092
    Windows 7 32 bit
       #11

    Hotkey Copy As Path


    Also you can use this AutoHotKey script

    Code:
    ; <COMPILER: v1.0.47.6>
    #SingleInstance Ignore
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%
    
    Menu Tray,NoStandard
    Menu Tray,Add,Donate,DoDonate
    Menu Tray,Add
    Menu Tray,Add,Quit,DoQuit
    Menu Tray,Tip,Copy As Path
    
    Result := _EmptyWorkingSet()
    
    #IfWinActive,ahk_class CabinetWClass
    MButton::
    Gosub,DoCE
    Return
    #IfWinActive,ahk_class ExploreWClass
    MButton::
    Gosub,DoCE
    Return
    
    
    DoCE:
    clipboard = ; clear clipboard
    Send ^c
    ClipWait, 2
    clipboard = %clipboard%
    Return
    
    DoDonate:
    Run,"http://www.favessoft.com/donate.html"
    Return
    
    DoQuit:
    ExitApp
    
    _EmptyWorkingSet()
    {
      Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
    }
    Select files/folders in explorer and press the middle mouse button. Then you can paste the list into an editor or whatever. As it is now, it doesn't wrap paths with a space with double quotes. You only need that for command line params anyway. If you want that just add a couple of lines of AutoHotKey. Me, I hate they way AHK handles strings(not double quotes as in most other programming languages,) so I do as little as possible to get stuff to work. AHK can do a lot with a few lines when it comes to a hotkey for the tray though. You can't beat it for small do it yourself little gizmos like this.

    (The DoCE is just named that because I pasted it out of my HalfShell script which opens selected folders in a 32 bit shell on 64 bit systems. You can change it to something else if you like.)
      My Computer


  2. Posts : 14
    Windows 7 Ultimate x64
       #12

    I downloaded and installed the solution nuspieds found (see last message). Compared to Shift-RightClick by Microsoft it has the advantage, that the pathname does not get hyphenated in the clipboard.

    This seems a lot more practical because typing opening hyphen - paste - typing closing hyphen is a lot more practical than paste - position cursor at opening hyphen - remove - position cursor at closing hyphen - remove.

    And in many situations you don' need any hyphens at all or want to use 'C:\bla.txt', <C:\bla.txt>...
      My Computer


  3. Posts : 3
    Windows 7 Enterprise x64
       #13

    Multiple Items Copying


    Guys, is there a way to copy path of multiple selected files/folders?
      My Computer


  4. Posts : 53
    Windows 7 Ultimate x64
    Thread Starter
       #14

    Shift Right-Click will copy for multiple selected files/folders.
      My Computer


  5. Posts : 1
    Windows 7 Ultimate x86
       #15

    nuspieds said:
    Thanks, R A.

    I found an answer from another site and I was referred ot the following site for the solution:

    Copy File Path and Name using Windows Explorer Context Menu Extensions

    So I used that and it worked for me.

    The ability to copy path multiple-selected files is cool, but it's something that I have yet to use. For me, pressing shift+right-click to get that functionality if ever needed it would be perfectly fine.
    I'm sorry, I don't think that stuff can deal with copying multiple-selected files. Because, for instance, if you select 3 files and right click the program shortcut, that program will run 3 times, the paths of the 3 files cannot be merged.

    I wrote a VB6 bas and solved the problem. It really can be for multiple-selected files or folders.


    Sub Main()
    Dim Paths As String
    Dim Start As Single

    If App.PrevInstance Then Paths = Clipboard.GetText & vbCrLf 'if previous instance running
    Clipboard.Clear
    Clipboard.SetText Paths & Mid(Command, 2, Len(Command) - 2) 'function Mid is for removing quotations

    Start = Timer
    Do While Timer < Start + 1 'keep this instance for about one second
    DoEvents '
    Loop
    End Sub
    Registy's modification will be like as follows


    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\*\Shell\Copy File Path\Command]
    @="\"C:\\Program Files\\CopyAsPath\\CopyAsPath.exe\" \"%1\""
    [HKEY_CLASSES_ROOT\Folder\Shell\Copy Folder Path\Command]
    @="\"C:\\Program Files\\CopyAsPath\\CopyAsPath.exe\" \"%1\""
    I compiled vb and uploaded it.

    I'm sorry again for my English, you know, I'm not an English speaking person.
    Can &quot;Copy as path&quot; be enabled permanently without Shift Attached Files
      My Computer


  6. Posts : 260
    Windows 7 Ultimate 64bit
       #16

    So, in answer to the poster's question, there doesn't seem to be a way of un-extending the behaviour of CopyAsPAth. VERY strange.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:43.
Find Us