Home > Back-end >  [network mapping dish to determine whether a file exists no effect!!]
[network mapping dish to determine whether a file exists no effect!!]

Time:09-16

To determine whether a file exists, the Chinese characters for more than four characters can't judge, preliminary judgment not a permissions problem, because I can read and write mapping set,

CodePudding user response:

I do not have this problem, you try to use the trim to remove the blank space on both sides of the direct contrast or extractfilename remove path file name give it a try,
I was a 64 - bit system, don't 32-bit support long file names?

CodePudding user response:

The file name in quotes

CodePudding user response:

May be mapping set, corresponding to a disk file conversion problem, didn't find the true path to the file name,

CodePudding user response:

With the real machine test,

CodePudding user response:

You use SetCurrentDir first set the current path, then use FileExists file, file names don't take that path,
In this scheme to try,

CodePudding user response:

Apparently symbol Angle half Angle problem, all of them, and see by yourself:

CodePudding user response:

Trim remove Spaces;
Pay attention to character format;

CodePudding user response:

refer to 7th floor xiaocongzhi response:
trim remove Spaces;
Pay attention to character format;
I can't name four four Chinese characters mapping set judgment does not exist

CodePudding user response:

refer to the second floor SupermanTm response:
filename quotes
must be added

CodePudding user response:

refer to 6th floor DelphiGuy response:
is obviously symbolic Angle half Angle problem, all of them, and see by yourself:
is not the file names more than four Chinese characters will be can not find a file name in English is ok
  • Related