Windows 10: NirCmd: Copy Path vs. Copy File Name

Discus and support NirCmd: Copy Path vs. Copy File Name in Windows 10 Software and Apps to solve the problem; Merging the following code in the Registry adds a "Copy File Path" context-menu in File Explorer and it works properly. Code: Windows Registry Editor... Discussion in 'Windows 10 Software and Apps' started by Yaron, Aug 23, 2021.

  1. Yaron Win User

    NirCmd: Copy Path vs. Copy File Name


    Merging the following code in the Registry adds a "Copy File Path" context-menu in File Explorer and it works properly. Code: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\CopyFilePath] @="Copy File Path" [HKEY_CLASSES_ROOT\*\shell\CopyFilePath\command] @="nircmd.exe execmd (echo.|set /p=\"%1\") | clip" The following code for Copy File Name does not work (the file name is not copied). Code: [HKEY_CLASSES_ROOT\*\shell\CopyFileName] @="Copy File Name" [HKEY_CLASSES_ROOT\*\shell\CopyFileName\command] @="nircmd.exe execmd (echo.|set /p=\"%~nx1\") | clip" *** Code: echo. | set /p = "%~nx1" | clip does work in a batch file. I'd appreciate your help.

    :)
     
    Yaron, Aug 23, 2021
    #1
  2. temp02 Win User

    Java.nio.file - Copying files

    You can't copy a folder, thats why it generates an exception (you are trying to copy a folder using a copy file function).
    You probably need to list all the files inside that folder and copy one by one
     
    temp02, Aug 23, 2021
    #2
  3. Wozzer Win User
    Java.nio.file - Copying files

    Issue was the above, so thanks temp02.
     
    Wozzer, Aug 23, 2021
    #3
  4. pgrizard Win User

    NirCmd: Copy Path vs. Copy File Name

    why is robocopy failing to copy files with long path names

    I thought one of robocopy's great features was the ability to copy long path names?

    I am trying to copy files on a windows 2008 R2 server and everything accept items with long paths are copying.

    I am copying from one volume to another H:\ -> K:\

    does it not work on server 2008? are there certain scenarios where it wont copy long file names?

    robocopy "\\server\k$\Shares\Projects\2020-move" "\\server\h$\2020-move" /S /E /COPYALL /ZB /MT:12 /R:1 /W:1 /TEE /LOG:H:\robocopy\2020-unc.log
     
    pgrizard, Aug 23, 2021
    #4
Thema:

NirCmd: Copy Path vs. Copy File Name

Loading...
  1. NirCmd: Copy Path vs. Copy File Name - Similar Threads - NirCmd Copy Path

  2. Can't copy path of zipped files

    in Windows 10 Gaming
    Can't copy path of zipped files: Before now, I never had a problem copying the path of any file. I could even copy the path inside a zipped file. Now, if I choose a zipped file, extract immediately hightlights so that I have no option but to unzip the file. This means that could not even copy a zip file to...
  3. Can't copy path of zipped files

    in Windows 10 Software and Apps
    Can't copy path of zipped files: Before now, I never had a problem copying the path of any file. I could even copy the path inside a zipped file. Now, if I choose a zipped file, extract immediately hightlights so that I have no option but to unzip the file. This means that could not even copy a zip file to...
  4. Can't copy path of zipped files

    in Windows 10 BSOD Crashes and Debugging
    Can't copy path of zipped files: Before now, I never had a problem copying the path of any file. I could even copy the path inside a zipped file. Now, if I choose a zipped file, extract immediately hightlights so that I have no option but to unzip the file. This means that could not even copy a zip file to...
  5. COPY As Path

    in Windows 10 Gaming
    COPY As Path: For the life of me, I cannot figure out what the difference is between Win 10 copy and paste and Win 11 copy or copy as path?? totally perplexing and confusing! Sid Kraft https://answers.microsoft.com/en-us/windows/forum/all/copy-as-path/a4d1506a-8506-4784-b1c7-1d128fbb896a
  6. COPY As Path

    in Windows 10 Software and Apps
    COPY As Path: For the life of me, I cannot figure out what the difference is between Win 10 copy and paste and Win 11 copy or copy as path?? totally perplexing and confusing! Sid Kraft https://answers.microsoft.com/en-us/windows/forum/all/copy-as-path/a4d1506a-8506-4784-b1c7-1d128fbb896a
  7. FILE EXPLORER - Move vs. Copy

    in Windows 10 Network and Sharing
    FILE EXPLORER - Move vs. Copy: Hello. I can't figure out why when I drag and drop files to different folders in File Explorer there are times it 'moves' versus 'copies'. I can't tell what I'm doing differently. Thanks....
  8. FILE EXPLORER - Move vs. Copy

    in Windows 10 Gaming
    FILE EXPLORER - Move vs. Copy: Hello. I can't figure out why when I drag and drop files to different folders in File Explorer there are times it 'moves' versus 'copies'. I can't tell what I'm doing differently. Thanks....
  9. FILE EXPLORER - Move vs. Copy

    in Windows 10 Software and Apps
    FILE EXPLORER - Move vs. Copy: Hello. I can't figure out why when I drag and drop files to different folders in File Explorer there are times it 'moves' versus 'copies'. I can't tell what I'm doing differently. Thanks....
  10. File History vs Copy & Paste

    in Windows 10 Installation and Upgrade
    File History vs Copy & Paste: I am currently using a copy and paste method for backing up my hard drives to EHD devices. I have to split my data between 2 EHD devices because of the large amount of data. If I copy and paste the biggest folders, it can take over 12 hours to copy each of the four. If I...