Conduct a Test for Long Paths - x360Sync

Written By Tami Sutcliffe (Super Administrator)

Updated at July 28th, 2021

Overview

In the Windows API, the maximum length for a path is MAX_PATH, which is defined as 260 characters. Applications can, however, programmatically exceed this length, so x360Sync does support the syncing of files to and from these paths. In order to create a long path for testing, we have created a utility: longpath.exe . 

Instructions

Longpath.exe can be run from the command line as follows: 

> longpath.exe "c:\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\file.txt"

Longpath.exe will automatically create the path and will create the file at the end. The following path is an example of a path that exceeds Windows' max_path:

c:\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz/abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\abcdefghijklmnopqrstuvwxyz\file.txt