logo
ComputerCannot Create a File When That File Already Exists

Mklink Error: Cannot Create a File When That File Already Exists

By Sophia | Last Updated

Have you ever encountered such an error "Cannot create a file when that file already exists" while you try to change the iTunes backup location from default location to external hard drive?

mklink symlink creation error

If the error troubles you, please learn to fix it by following this article.

1. Learn about what the "mklink" means.

Mklink is the code that can be used to create a symbolic link. It always appears in command line in this way: mklink [[/d] | [/h] | [/j]] [Link] [Target]. For example, if you want to create a symbolic link named MyPictures from the root directory to the \Users\User1\Pictures directory, you can execute: mklink /d \MyPictures \Users\User1\Documents .

2. Check whether you have deleted the "Backup" folder in default location.

Go to the default iTunes backup location and see if the folder "Backup" still exists.

On Windows:

  • Windows 10: C:\Users\USER\AppData\Roaming\Apple Computer\MobileSync\Backup
  • Windows 8/8.1/7/Vista:C:\Users\~\AppData\Roaming\Apple Computer\MobileSync\Backup
  • Windows XP: C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup

On Mac: ~/Library/Application Support/MobileSync/Backup/

If it exists, just delete it at first and then change backup location with command "mklink".

3. Check whether your external hard drive is formatted in Windows NT file system.

If you are not sure, insert the USB flash drive to your computer and right click it. Check its Properties. And click General tab to view File system. By default it is formatted in FAT32. So you need to right click the USB flash drive again and choose to Format in Windows NT file system.

4. Check whether the syntax is correct or not

You can follow the parameters below to check whether the syntax on your code is right or not. Or you can ask the tech expert to have a check.

parameters

Related Articles: