Click here to Skip to main content
Click here to Skip to main content

Copy Location Shell Extension

By , 14 Apr 2000
 
  • 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

     
    Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
    You must Sign In to use this message board.
    Search this forum  
        Spacing  Noise  Layout  Per page   
    GeneralThanks!memberjpascuet4 Apr '08 - 5:32 
    GeneralRe: Thanks!memberIicFox18 Oct '09 - 21:54 
    QuestionCan you paste multiple attributes into a spreadsheet?memberDataSpa21 Aug '07 - 12:39 
    Hi.
    First of all GREAT SCRIPT! Thanks for posting it.
     
    I was wondering if this shell extension can be modified to copy multiple attributes in explorer like, file location, name, file type, date modified at once, then I can paste all the info into a spreadsheet into cells.
     
    So I could get a result in my spreadsheet like this (examaple):
     
    Filename | File Type | Date Modified | File Path
     
    BigBox.dwg AutoCAD 12/12/2009 c:\drawings\files\boxes
    SmallBox.dwg AutoCAD 10/12/2009 c:\drawings\files\boxes
    BlueBoxes.dwg AutoCAD 10/12/2009 c:\drawings\files\boxes
     
    (Sorry this text sample doesn't illustrate the output very well but each attribute for an item would have to paste into the next cell.)
     
    I have directories I have to put an archive list together for and I am looking for a solution. Your script has helped me already but I was wondering if it can do multiple items at once.
     
    Thanks VERY MUCH!
    GeneralRegistration in Vista Ultimatemembercmlang423 Jul '07 - 16:59 
    GeneralRe: Registration in Vista UltimatememberItay Szekely3 Jul '07 - 21:24 
    GeneralRe: Registration in Vista UltimatememberTedToal20 Oct '08 - 9:29 
    GeneralRe: Registration in Vista UltimatememberItay Szekely20 Oct '08 - 13:51 
    QuestionCopy Location Shell Extension functionality [modified]memberhackeronte de bugger4 May '07 - 6:18 
    QuestionCombine filename and locationmemberj0ha|\|30 Aug '06 - 22:00 
    AnswerRe: Combine filename and locationmemberItay Szekely30 Aug '06 - 22:09 
    GeneralExcellentmemberStober23 Aug '05 - 9:07 
    GeneralUrgent.sussAnonymous9 Feb '05 - 11:12 
    GeneralNeed Help.sussAnonymous29 Jan '05 - 11:48 
    GeneralGet *.lnk File PathmemberMiss Fress5 Apr '04 - 18:02 
    QuestionRe: Get *.lnk File PathmemberHardwired4 Dec '05 - 2:04 
    GeneralDoesn't copy whole textmemberBard25 Feb '03 - 5:31 
    GeneralRe: Doesn't copy whole textmemberMandar D. Sahasrabuddhe15 Mar '03 - 2:22 
    GeneralRe: Doesn't copy whole textmemberBard16 Mar '03 - 21:47 
    GeneralSolution to "Doesn't copy whole textmemberMandar D. Sahasrabuddhe15 Mar '03 - 20:44 
    QuestionHow to Copy/Move Temporary Internet File?memberStuard20 Sep '02 - 9:33 
    AnswerRe: NomemberTim Smith20 Sep '02 - 9:41 
    GeneralNice idea!memberAlvaro Mendez16 Aug '01 - 6:16 
    GeneralTiny Update (compilation problem)sussItay Szekely8 Apr '00 - 22:56 

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

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