The filepath is too long. The
Microsoft documentation[
^] states
Quote:
In editions of Windows before Windows 10 version 1607, the maximum length for a path is MAX_PATH, which is defined as 260 characters. In later versions of Windows, changing a registry key or using the Group Policy tool is required to remove the limit.
Your fully-pathed filename is 286 characters long - regardless of whether you have used spaces, ampersands and underscores.
If you are using Windows 10 or better you can change the registry to get around this limitation - see
Maximum Path Length Limitation - Win32 apps | Microsoft Docs[
^]
However, consider if your program is going to be run on a user machine where they may not want to, or may not be allowed to, change registry settings.
Using periods (
\ISG.SelectX\
) and spaces (
\Service Provider Case Studies_Workplace Select\
) in folder names is not usually considered good practice - it can easily be misunderstood - in the former case it may be mistaken for a
file called ISG.SelectX and in the latter you are forcing the user to surround the name with double-quotes if using any cmd instructions, such as DIR
Also consider the impact of having a folder tree 7 layers deep - you might think it's nicely organised but have you gone too far with that concept? You have effectively prevented any migration to a URL based system (such as Sharepoint - not necessarily a bad thing :laugh:). Does it really make things easier to find?
Finally, consider how people will see that file name if they need to select it to open it and view it - the file name is not going to fit in any window and it looks as if the last 4 characters, which they will not be able to see, might actually be important when choosing which file to open. If I was your user I would be rather annoyed.