Accessing files beyond MAX_PATH in C#/.NET

前端 未结 5 1424
粉色の甜心
粉色の甜心 2020-12-16 20:56

BACKGROUND

I need to write a tool using .NET version 2.0 at highest (using something off the shelf is not an option for this client for political, c

5条回答
  •  情话喂你
    2020-12-16 21:31

    You could try shortening the path by mapping a parent directory using subst.exe (or whatever APIs it uses internally):

    http://www.makeuseof.com/tag/how-to-map-a-local-windows-folder-to-a-drive-letter/

    Ideally you'd map away as much as possible of the path.

提交回复
热议问题