troubleshooting Question

SetCurrentDirectory path limit

Avatar of Julian Hansen
Julian HansenFlag for South Africa asked on
C++Windows 10
7 Comments1 Solution451 ViewsLast Modified:
According to MSDN docs for SetCurrentDirectory (https://msdn.microsoft.com/en-us/library/windows/desktop/aa365530%28v=vs.85%29.aspx) path must be MAX_PATH -2 or less bytes (without trailing '\') MAX_PATH-1 if '\' is included.

I have a situation where I have a path (Windows 10) that is MAX_PATH -1 without trailing '\'.

Question if the OS allows this path - how do I SetCurrentDirectory to it ?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros