E
E
Evgeny Ivanov2017-06-20 08:37:33
Delphi
Evgeny Ivanov, 2017-06-20 08:37:33

How to bypass the limitation of the length of the path to a file (or folder)?

OS Windows7 SP 1.
I use the cloud, which is very convenient.
The file paths are something like this

D:\Облако облако.ru\Личные папки\Иванов Иван Иванович\Синхронизируемые файлы и папки\Рабочие папки\Мои файлы и проекты\Добавление к одному файлу данных из другого файла и сохранение в третий файл\Проект\some_file.txt

Some programs (Delphi and others) complain about the length of the path to the file. File not found and other errors.
And they show not the full path, the truncated path (for example, without Adding data from another file to one file and saving it to the third file\Project\some_file.txt).
When the path is reduced, say by a third, everything works.
How to bypass the limitation of the length of the path to a file (or folder)?
I really don't want to rename and shorten it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2017-06-20
@tsklab

Some programs (Delphi and others) complain about the length of the path to the file.
Because it's outdated According to Naming Files, Paths, and Namespaces can be bypassed using the "\\?\" prefixconst MAX_PATH = 1024;
Synchronized files and folders\Working folders\My files and projects\Add data from another file to one file and save to a third file\Project
This can be stored in the file description (inside or outside Descript.ion ).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question