Click here to Skip to main content
Licence 
First Posted 7 Apr 2000
Views 99,558
Bookmarked 44 times

Copy Location Shell Extension

By | 14 Apr 2000 | Article
This shell extension adds the ability to copy file and folder names from the Windows Explorer to the clipboard.
  • Download source files - 38 Kb
  • Download the shell extension - 28 Kb
  • copylocation.gif


    Introduction

    This shell extension adds the ability to copy file and folder names from the Windows Explorer window to the clipboard. Simply select the file(s) whose name you want to copy, right-click and select "Copy File Path" or "Copy File Name" from the context menu. Then paste to any editor.

    Copy File Path - copies the entire path to the file.
    Copy File Name - copies only the file name without the folder.

    This utility is inspired by Michael Dunn's article The Complete Idiot's Guide to Writing Shell Extensions. Thanks Michael!


    Setup

    1. Unzip CopyLocation.zip to the folder where you want to install the utility (e.g., C:\Winnt).
    2. Go to the installation folder and double-click on Install.bat.
    3. If you wish, you can delete Install.bat.

    Install.bat registers CopyLocation.dll in the system.

    Alternatively you can:

    1. Copy CopyLocation.dll to the installation folder (e.g., C:\Winnt).
    2. From the Start Menu select Run...
    3. Type "regsvr32.exe C:\Winnt\CopyLocation.dll" and press OK (specify the exact installation folder)

    Install using Run... command

    To uninstall the shell extension:

    1. From the Start Menu select Run...
    2. Type "regsvr32.exe /u C:\Winnt\CopyLocation.dll" and press OK (specify the exact installation folder)
    3. Delete CopyLocation.dll from the installation folder.


    Possible problems

    This shell extension has been tested on Windows 98 and on NT 4.0 with Internet Explorer 5.0. I don't know how it will function under other operating systems. Please write to me if you encounter any problems.


    Contacting me

    Bug reports, requests, features? Write to me at etay@writeme.com.
    Go to my website for latest updates about this utility and other tools I made.


    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Itay Szekely

    Software Developer (Senior)

    Israel Israel

    Member

    It's all in my website

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralThanks! Pinmemberjpascuet5:32 4 Apr '08  
    GeneralRe: Thanks! PinmemberIicFox21:54 18 Oct '09  
    QuestionCan you paste multiple attributes into a spreadsheet? PinmemberDataSpa12:39 21 Aug '07  
    GeneralRegistration in Vista Ultimate Pinmembercmlang4216:59 3 Jul '07  
    GeneralRe: Registration in Vista Ultimate PinmemberItay Szekely21:24 3 Jul '07  
    GeneralRe: Registration in Vista Ultimate PinmemberTedToal9:29 20 Oct '08  
    GeneralRe: Registration in Vista Ultimate PinmemberItay Szekely13:51 20 Oct '08  
    QuestionCopy Location Shell Extension functionality [modified] Pinmemberhackeronte de bugger6:18 4 May '07  
    QuestionCombine filename and location Pinmemberj0ha|\|22:00 30 Aug '06  
    AnswerRe: Combine filename and location PinmemberItay Szekely22:09 30 Aug '06  
    GeneralExcellent PinmemberStober9:07 23 Aug '05  
    GeneralUrgent. PinsussAnonymous11:12 9 Feb '05  
    GeneralNeed Help. PinsussAnonymous11:48 29 Jan '05  
    GeneralGet *.lnk File Path PinmemberMiss Fress18:02 5 Apr '04  
    QuestionRe: Get *.lnk File Path PinmemberHardwired2:04 4 Dec '05  
    GeneralDoesn't copy whole text PinmemberBard5:31 25 Feb '03  
    GeneralRe: Doesn't copy whole text PinmemberMandar D. Sahasrabuddhe2:22 15 Mar '03  
    GeneralRe: Doesn't copy whole text PinmemberBard21:47 16 Mar '03  
    GeneralSolution to "Doesn't copy whole text PinmemberMandar D. Sahasrabuddhe20:44 15 Mar '03  
    QuestionHow to Copy/Move Temporary Internet File? PinmemberStuard9:33 20 Sep '02  
    AnswerRe: No PinmemberTim Smith9:41 20 Sep '02  
    GeneralNice idea! PinmemberAlvaro Mendez6:16 16 Aug '01  
    GeneralTiny Update (compilation problem) PinsussItay Szekely22:56 8 Apr '00  
    I got a note from someone who had a compilation error. If you encounter this, change line 178 in CopyLocationShl.cpp from:
    clipBuffer += "\r\n";
    to:
    clipBuffer += _T("\r\n");
     
    Another thing. You have to have administrative rights to run regsvr32.exe on Windows NT. I don't know how to work around this, if you have a clue, drop me a line

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web02 | 2.5.120528.1 | Last Updated 15 Apr 2000
    Article Copyright 2000 by Itay Szekely
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid