Long File path Exception:The system cannot find the path specified
Moritz Maxeiner via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 23 04:29:07 PDT 2017
On Wednesday, 23 August 2017 at 05:06:50 UTC, Vino.B wrote:
> Hi All,
>
> When i run the below code in windows i am getting "The system
> cannot find the path specified" even though the path exist ,
> the length of the path is 516 as below, request your help.
>
> Path :
> N:\PROD_TEAM\TST_BACKUP\abcyf0\TST_BATS\j2ee_backup\cluster\states0\apps\bat.com\tc~bat~agent~application~e2emai~std~collectors\servlet_jsp\tc~bat~agent~application~e2emai~std~collectors\root\WEB-INF\entities\DataCollectionPushFileContentScannerTypeBuilder
>
> Program:
> [...]
On which line do you get the Exception? Does it happen with
shorter paths, as well?
Assuming it happens with all paths: Just to be sure, is each of
those backslashes actually encoded as a backslash? If you
specified the path in the D source like `path =
"N:\PROD_TEAM..."`, then it won't be, because backslash is an
escape character (you would need to write `path =
"N:\\PROD_TEAM..."`, or better yet path = "N:/PROD_TEAM..."`).
More information about the Digitalmars-d-learn
mailing list