{"id":5666,"date":"2024-10-27T02:00:31","date_gmt":"2024-10-26T20:30:31","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=5666"},"modified":"2025-03-12T11:00:49","modified_gmt":"2025-03-12T05:30:49","slug":"fix-source-path-too-long-destination-path-too-long-error","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/fix-source-path-too-long-destination-path-too-long-error\/","title":{"rendered":"Fix &#8216;Source Path Too Long\/Destination Path Too\u00a0Long&#8217; Error"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Destination-Path-Too-Long.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"250\" data-id=\"5667\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Destination-Path-Too-Long.png\" alt=\"Destination Path Too\u00a0Long\" class=\"wp-image-5667\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Destination-Path-Too-Long.png 707w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Destination-Path-Too-Long-300x106.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>The &#8220;Destination Path Too Long&#8221; or &#8220;Fix &#8216;Source Path Too Long&#8221; error can occur when you try to move, copy, or extract a file into a directory. The total path length allowed in Windows is 260 characters. If someone creates or attempts to modify a file or folder through this path, the system may show these errors.<\/p>\n\n\n<h6 class=\"wp-block-heading\" id=\"example-of-a-long-path\">Example of a Long Path:<\/h6>\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1509\" height=\"252\" data-id=\"5669\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926.png\" alt=\"The file name(s) would be too long for the destination folder. You can\nshorten the file name and try again, or try a location that has\u00a0a\u00a0shorter\npath.\" class=\"wp-image-5669\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926.png 1509w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926-300x50.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926-1024x171.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Screenshot-2024-10-25-151926-768x128.png 768w\" sizes=\"auto, (max-width: 1509px) 100vw, 1509px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>When you have directories nested within each other like that, Windows tends to have a tough time managing them.<\/p>\n\n\n\n<p><\/p>\n\n\n\t\t\t\t<div class=\"wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-235c0b2b      \"\n\t\t\t\t\tdata-scroll= \"1\"\n\t\t\t\t\tdata-offset= \"30\"\n\t\t\t\t\tstyle=\"\"\n\t\t\t\t>\n\t\t\t\t<div class=\"uagb-toc__wrap\">\n\t\t\t\t\t\t<div class=\"uagb-toc__title\">\n\t\t\t\t\t\t\tQuick Overview of Solutions\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uagb-toc__list-wrap \">\n\t\t\t\t\t\t<ol class=\"uagb-toc__list\"><li class=\"uagb-toc__list\"><a href=\"#enable-long-path-support-in-windows-1011-permanent-solution\" class=\"uagb-toc-link__trigger\">Enable Long Path Support in Windows 10\/11 (Permanent Solution)<\/a><li class=\"uagb-toc__list\"><a href=\"#shorten-the-file-name-or-folder-name-easiest-solution\" class=\"uagb-toc-link__trigger\">Shorten the File Name or Folder Name (Easiest Solution)<\/a><li class=\"uagb-toc__list\"><a href=\"#move-the-file-to-a-higher-level-folder\" class=\"uagb-toc-link__trigger\">Move the File to a Higher-Level Folder<\/a><li class=\"uagb-toc__list\"><a href=\"#use-the-command-prompt-to-move-or-delete-files\" class=\"uagb-toc-link__trigger\">Use the Command Prompt to Move or Delete Files<\/a><li class=\"uagb-toc__list\"><a href=\"#unleash-your-websites-potential\" class=\"uagb-toc-link__trigger\">Unleash Your Website&#039;s Potential<\/a><\/ol>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"enable-long-path-support-in-windows-1011-permanent-solution\">Enable Long Path Support in Windows 10\/11 (Permanent Solution)<\/h3>\n\n\n<p>Windows 10 and 11 come with a hidden feature that lets you use longer file paths, but it&#8217;s turned off by default. Turning it on can provide a permanent solution to the issue.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Press <code>Windows + R<\/code> to open the <strong>Run<\/strong> dialog box.<\/li>\n\n\n\n<li>Type <strong><a href=\"https:\/\/www.varonis.com\/blog\/group-policy-editor\" target=\"_blank\" rel=\"noopener\">gpedit.msc<\/a><\/strong> and hit <strong>Enter<\/strong> to open the Group Policy Editor.<\/li>\n<\/ol>\n\n\n\n<details class=\"wp-block-details has-small-font-size is-layout-flow wp-block-details-is-layout-flow\"><summary>If your machine did not show &#8220;Group Policy Editor&#8221; in the Windows search, expand this section by just clicking on this sentence to get steps to install it! \ud83d\udc46<\/summary>\n<ol class=\"wp-block-list\">\n<li>Press&nbsp;the <strong>Windows<\/strong>&nbsp;key on your keyboard and search for &#8220;<strong>Command Prompt<\/strong>&#8221; in the Windows search.<\/li>\n\n\n\n<li>Right-click <strong>Command Prompt<\/strong><span style=\"margin: 0px;padding: 0px\"><strong>&nbsp;<\/strong><\/span>from the result and click <strong>Run as Administrator.<\/strong><\/li>\n\n\n\n<li><strong>Execute the below codes in the command prompt <\/strong>and make sure to<strong> reboot the system <\/strong>after successful completion of the below codes in the<strong> <\/strong>Command Prompt.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>FOR %F IN (\"%SystemRoot%\\servicing\\Packages\\Microsoft-Windows-GroupPolicy-ClientTools-Package~*.mum\") DO (DISM \/Online \/NoRestart \/Add-Package:\"%F\")<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>FOR %F IN (\"%SystemRoot%\\servicing\\Packages\\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum\") DO (DISM \/Online \/NoRestart \/Add-Package:\"%F\")<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/08\/Installing-Local-Group-Policy-Editor.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"964\" data-id=\"5204\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/08\/Installing-Local-Group-Policy-Editor.gif\" alt=\"Installing Local Group Policy Editor in Windows\" class=\"wp-image-5204\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>After rebooting the device, open the <strong>Command Prompt <\/strong>as an administrator and execute the command <strong>gpedit.msc<\/strong> to open Group Policy Editor.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/08\/gpedit-msc-via-commandline.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"716\" data-id=\"5211\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/08\/gpedit-msc-via-commandline.gif\" alt=\"gpedit via commandline in Windows\" class=\"wp-image-5211\"\/><\/a><\/figure>\n<\/figure>\n<\/details>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li>In the left-hand panel, navigate to:<br><strong>Computer Configuration<\/strong> &gt; <strong>Administrative Templates<\/strong> &gt; <strong>System<\/strong> &gt; <strong>Filesystem<\/strong> &gt; <strong>NTFS<\/strong>.<\/li>\n\n\n\n<li>On the right, double-click on <strong>Enable Win32 long paths<\/strong>.Select <strong>Enabled<\/strong> and click <strong>OK<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p>Your Windows system can now manage file paths that are longer than 260 characters.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/LongPathsEnabled.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"1076\" data-id=\"5676\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/LongPathsEnabled.gif\" alt=\"LongPathsEnabled in Windows to solve the Destination Path Too\u00a0Long error.\" class=\"wp-image-5676\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"shorten-the-file-name-or-folder-name-easiest-solution\">Shorten the File Name or Folder Name (Easiest Solution)<\/h3>\n\n\n<p>As the heading suggests, shortening the file\/folder name can be the most effective and easiest solution you can try.<\/p>\n\n\n\n<p>This should work for most cases. If not, don\u2019t worry\u2014there are other solutions you can try.<\/p>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"move-the-file-to-a-higherlevel-folder\">Move the File to a Higher-Level Folder<\/h3>\n\n\n<p>If renaming doesn\u2019t help, try to move the file up a few folders to the topmost drive; this will trim the path, too.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the file or folder where this error is occurring.<\/li>\n\n\n\n<li>Cut the file: right-click \u2192 Cut or Ctrl+X. Go to one of its parent directories\u2014for example, Documents\u2014or directly from **C:** itself, and hit Paste in the right-click menu or use Ctrl+V.<\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"use-the-command-prompt-to-move-or-delete-files\">Use the Command Prompt to Move or Delete Files<\/h3>\n\n\n<p>If you are comfortable using Command Prompt, you can easily work around moving or deleting a file from there by avoiding the long path error. Here is how:<\/p>\n\n\n\n<p>Press Win + R and in the opened window type cmd then press Enter. Use the command cd then enter the folder the file is in. For example:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-6 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/commandline-in-windows.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1912\" height=\"964\" data-id=\"5680\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/10\/commandline-in-windows.gif\" alt=\"commandline in windows\" class=\"wp-image-5680\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>cd C:\\Users\\YourName\\Documents\\Projects<\/code><\/pre>\n\n\n\n<p>Once you&#8217;re in the right folder, use the <code>move<\/code> or <code>del<\/code> command:<\/p>\n\n\n\n<p>To move the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>move \"VeryLongFileName.txt\" C:\\NewLocation\\<\/code><\/pre>\n\n\n\n<p>To delete the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>del \"VeryLongFileName.txt\"<\/code><\/pre>\n\n\n\n<div class=\"wp-block-uagb-separator uagb-block-b0394031\"><div class=\"wp-block-uagb-separator__inner\" style=\"--my-background-image:\"><\/div><\/div>\n\n\n\n<p>The &#8220;Source Path Too Long&#8221; \/ &#8220;Destination Path Too Long&#8221; error can be a headache, but it\u2019s something you can fix with the solutions covered in this blog. Whether you\u2019re shortening file names, enabling long path support, or using other techniques, there\u2019s a solution that will work for you. Try one or more of the methods above, and you\u2019ll be back to working with your files in no time.<\/p>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-baa906f5 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Unleash Your Website&#8217;s Potential<\/h3><p class=\"uagb-cta__desc\">Experience lightning-fast speeds and unparalleled performance with our powerful VPS hosting solutions.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/vps-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Get Started Now<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Fix the &#8220;Source Path Too Long&#8221; or &#8220;Destination Path Too Long&#8221; error in Windows Explorer with this tutorial! (Easy Solutions)<\/p>\n","protected":false},"author":7,"featured_media":8012,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5],"tags":[],"class_list":["post-5666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/10\/Fix-Source-Path-Too-LongDestination-Path-Too-Long-Error.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"Fix the \"Source Path Too Long\" or \"Destination Path Too Long\" error in Windows Explorer with this tutorial! (Easy Solutions)","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5666","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=5666"}],"version-history":[{"count":13,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5666\/revisions"}],"predecessor-version":[{"id":7288,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/5666\/revisions\/7288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/8012"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=5666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=5666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=5666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}