Cannot create a file when that file already exists


  1. Posts : 1
    Windows 10
       #1

    Cannot create a file when that file already exists


    I've been trying for hours to get this working, but it keeps giving me the same error. I'm not an expert with computers and windows. This is what i've been entering:
    mklink /d "C:\Program Files (x86)\Steam\steamapps\sourcemods" "D:\sorce"
    Please help.
      My Computer


  2. Posts : 16,932
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    Perhaps this tutorial will help
    Create Soft and Hard Symbolic Links in Windows - TenForumsTutorials

    You'll also find guidance in
    MKLink - Microsoft Docs
    MKLink - SS64

    Denis
      My Computer


  3. Posts : 7,606
    Windows 10 Home 20H2
       #3

    menzieoqpe said:
    it keeps giving me the same error.
    I got the same error, and the following is the solution:
    Code:
    Microsoft Windows [Version 10.0.18362.30]
    (c) 2019 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>mklink /d "D:\Testing" "E:\Windows PE\"
    Cannot create a file when that file already exists.
    
    C:\Windows\system32>rmdir /s /q "D:\Testing"
    
    C:\Windows\system32>mklink /d "D:\Testing" "E:\Windows PE\"
    symbolic link created for D:\Testing <<===>> E:\Windows PE\
    If you do not want to delete the file/folder, use VBScript to create an LNK shortcut. I can show you how.
      My Computer


  4. Posts : 1,223
    W10-Pro 22H2
       #4

    I think you have simply got the mklink parameters the wrong way round: it should be

    mklink /d <link> <source>

    so in your case:

    mklink /d D:\sorce "C:\Program Files (x86)\Steam\steamapps\sourcemods"
      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 08:52.
Find Us




Windows 10 Forums