Cannot create a file when that file already exists error message

Page 1 of 2 12 LastLast

  1. Posts : 4
    Windows 10
       #1

    Cannot create a file when that file already exists error message


    I get this message when I try to change windows 10 update download location. The steps I performed were:


    1. Stop wuauserv in Task Manager > Services tab.
    2. Rename C:\Windows\SoftwareDistribution to C:\Windows\OldSoftwareDistribution
    3. Create new folder on external harddrive: D:\WindowsUpdateLocation
    4. Open command prompt - Run as administrator and type in mklink /j c:\windows\softwaredistribution d:\WindowsUpdateDownload and hit enter.

    I get 'Cannot create a file when that file already exists' . What am I doing wrong here? It should say Junction created for C:\Windows\OldSoftwareDistribution <<=>> D:\WindowsUpdateLocation but I get the error message instead.
      My Computer


  2. Posts : 5,330
    Windows 11 Pro 64-bit
       #2

    Make sure WindowsUpdateDownload folder does not exist.
      My Computer


  3. Posts : 1,621
    Windows 10 Home
       #3

    What will that junction do? I want to learn more about this.
      My Computer


  4. Posts : 5,330
    Windows 11 Pro 64-bit
       #4
      My Computer


  5. Posts : 4
    Windows 10
    Thread Starter
       #5

    FreeBooter said:
    Make sure WindowsUpdateDownload folder does not exist.
    I deleted the folder but I still get the same error message.
      My Computer


  6. Posts : 14,024
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #6

    For years now it has been a rule [since DOS/Disk Operating System] that a Folder cannot contain 2 or more files or subFolders of exactly the same name, duplicates have to be at least one character different.
      My Computers


  7. Posts : 5,330
    Windows 11 Pro 64-bit
       #7

    Code:
    mklink /J Link Target
    So, for example, if you wanted to create a hard link at C:\LinkToFolder that pointed to C:\Users\Name\OriginalFolder, you’d run the following command:

    Code:
    mklink /J C:\LinkToFolder C:\Users\Name\OriginalFolder
      My Computer


  8. Posts : 4
    Windows 10
    Thread Starter
       #8

    So I need to create a symbolic link(mklink /D) instead of a junction(mklink/J)? Not sure I get what you are saying here.
      My Computer


  9. Posts : 5,330
    Windows 11 Pro 64-bit
       #9

    Execute mklink /j d:\WindowsUpdateDownload c:\windows\softwaredistribution command.
      My Computer


  10. Posts : 4
    Windows 10
    Thread Starter
       #10

    FreeBooter said:
    Execute mklink /j d:\WindowsUpdateDownload c:\windows\softwaredistribution command.
    It worked.

    Thanks
      My Computer


 

  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 06:02.
Find Us




Windows 10 Forums