Need to copy between disks with variable drive letters


  1. Posts : 22
    Windows 10 Pro x64
       #1

    Need to copy between disks with variable drive letters


    Hi,
    The more I read about symlinks, hardlinks, junctions, etc....the more confused I get!?
    I've seen so many contradicting explanations and my own experimentation hasn't helped clarify any of it either.

    Here's what I'm trying to do...
    I have files and folders located on a backup hard drive. I need to have some identical files/folders in two different locations on this same drive.
    I used to just create simple Windows shortcuts but then would run into problems when the drive letter changed after being reconnected to Windows at a later date or on a different PC.
    So this is what I'm trying to avoid happening again. Therefore I figured one of these other link types might help.
    To experiment with it, I used LinkShellExtension on a USB flash drive to mimic that situation by doing exactly what I described above.
    The results....
    - Symlinks are broken as soon as I change the drive letter
    - Hardlinks...there isn't anything called 'Hardlinks' in LSE?
    - Junctions, LSE encounters an error when creating the Junction

    So...how can this be done? There are a bunch of other options in LSE but I have no idea what they do so I don't want to mess around too much without having a clue of what I'm doing so any help would be greatly appreciated!
    Thx in advance!
    Chumbo
      My Computer


  2. Posts : 16,591
    Windows 10 Home x64 Version 22H2 Build 19045.4046
       #2

    Chumbo,

    Your problem has nothing to do with soft / hard symbolic links.
    Soft / hard symbolic links cannot help you in this situation.
    If the drive letter changes then no form of Windows shortcut can help you.

    If you have control of the disks concerned and can allocate them unique labels then you could write a batch file to detect their drive letter each time then adjust the rest of the batch file to do whatever it is you need to do.
    I can provide a sample batch file for this.

    Alternatively, you can set the drive letter to a fixed one for the disk on every computer you use. You might find this simpler.

    Let me know your decision and I can help you do the job.

    @Brink - I think posts #66 & #67 would be better moved to a thread of their own. I think a suitable title would be something like Need to copy between disks with variable drive letters.


    Denis
      My Computer


  3. Posts : 22
    Windows 10 Pro x64
    Thread Starter
       #3

    Thanks for the reply. I guess I'll go with the fixed drive letter then (using 'Disk Management', right?). Although it's not exactly fail proof as I've had instances in the past where, when the drive is disconnected, the letter is freed and when I connect another drive, it 'steals' the previously used drive letter.
    So when I then reconnecting that original drive, it's also now been reassigned a new drive letter, thereby messing up the shortcuts.
      My Computer


  4. Posts : 16,591
    Windows 10 Home x64 Version 22H2 Build 19045.4046
       #4

    Yes, use Disk management.
    - To avoid 'stealing', choose a drive letter that is higher up the alphabet than the number of disks that might be connected to the computer. I, just for example, always assign something greater than H:\.
    Change and Assign Drive Letter - TenForumsTutorials


    Best of luck,
    Denis



    Oh, and welcome to TenForums.

    It's really worth making time to browse through the Tutorial index - there's a shortcut to it at the top of every page.
    - At the foot of the Tutorial index is a shortcut to download it as a spreadsheet.
    - I download a new copy each month.
    - By downloading it as a spreadsheet I can benefit from Excel's excellent filtering capabilities when I search for topics of interest.
    - Tutorials are also listed by category at Tutorials - there's also a shortcut to that at the top of every page.
    - Both tutorial lists are searchable.
    - You can also search for TenForumsTutorials in many general search engines, such as Google, by adding site:tenforums.com/tutorials after your search term. For example,
    taskbar toolbars site:tenforums.com/tutorials

    You can search TenForums using the search box in the top-right corner of all TenForums webpages or using Advanced Search - TenForums
    - You can also search TenForums threads in many general search engines, such as Google, by adding site:tenforums.com after your search term. For example,
    Search for drivers by HardwareID site:tenforums.com
    - [This is what the search box in the top-right corner of TenForums webpages does automatically]
      My Computer


  5. Posts : 22
    Windows 10 Pro x64
    Thread Starter
       #5

    Ok, thanks Denis, will do!
      My Computer


  6. Posts : 456
    Windows 10
       #6

    Maybe this topic can help, you can copy or move files without having to know the drive letter:
    Script to find a specific USB drive and copy a file?
      My Computer


  7. Posts : 16,591
    Windows 10 Home x64 Version 22H2 Build 19045.4046
       #7

    chumbo,

    Posts #8 & #36 of the thread that Ricardo has linked to are what I would have suggested if you had been interested in a batch file solution to find drive letters each time.
    Try3 said:
    If you have control of the disks concerned and can allocate them unique labels then you could write a batch file to detect their drive letter each time then adjust the rest of the batch file to do whatever it is you need to do.
    I can provide a sample batch file for this.

    Since you have chosen to set fixed drive letters, other methods are not particularly relevant. I've chosen to find drive letters each time and I think it's a superior solution but it's your decision.

    All the best,
    Denis
      My Computer


  8. Posts : 22
    Windows 10 Pro x64
    Thread Starter
       #8

    Thanks but I'm a very average user and all this scripting is going way over my head and frankly, for my 'problem' at hand, it wouldn't be worth my time to even investigate it as setting the drive letter way out of range will work - for me at least - in most case scenarios, most of the time.
    Thanks just the same for the concern and help!
      My Computer


  9. Posts : 42,532
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #9

    Bear in mind it only one drive can be assigned per drive letter, and that's the most recent so assigned.
      My Computers


 

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

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




Windows 10 Forums