• Login
Community
  • Login

Notepad++ Cannot Backup Text files - Windows 10

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
2 Posts 2 Posters 1.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mark Warbinek
    last edited by May 11, 2018, 12:13 AM

    This problem just popped up after the recent Windows 10 updates.

    Previously, file names that were more than 12 characters (includes spaces) were savable and Notepad++ backed them up in the nppBackup folder without issue.

    Now, Notepad++ throws up an error popup when trying to save a file that has a 13+ character name.

    Generally, I can save a files in Windows 10 that have more than 13 characters (ie: 30 characters) , but to get Notepad++ to back these named files as verbose will not work and the error occurs.

    Error says, “The previous version of the file could not be saved into the backup directory at: …”

    Any fix for this?

    C 1 Reply Last reply May 11, 2018, 10:53 AM Reply Quote 0
    • C
      Claudia Frank @Mark Warbinek
      last edited by Claudia Frank May 11, 2018, 10:55 AM May 11, 2018, 10:53 AM

      @Mark-Warbinek

      I assume you hit the MAX_PATH (260 characters) limit, which means
      the amount of characters in the full path is not allowed to exceed 260 chars, might this be?
      If so and because you are on windows 10 there MIGHT be a solution.
      Stop npp and edit the registry

      HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
      

      add a REG_DWORD variable called

      LongPathsEnabled
      

      and give it a value of

      1
      

      See here for the explanation of this.

      Note, I don’t have any experience with this key but rumors on the web say
      that 32bit applications might have issues when having set this key and using
      api calls which do respect that key.

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 3
      1 out of 2
      • First post
        1/2
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors