Sorry but i have to use PChar here:
GetFileAttributesEx(PChar(FileName), GetFileExInfoStandard, @fad)
Following is only to test if the data is given correctly:
ShowMessage(String(PChar(FileName)));
I understand that the system can't find the file when the file/path is not given correctly when using PChar here. So what i am doing wrong here in Lazaraus?
ShowMessage(String(PChar(FileName)));
You don't need the conversion here.
Please read completely:
Following is only to test if the data is given correctly:ShowMessage(String(PChar(FileName)));
I solved this problem by this:
GetFileAttributesEx(PChar(
String(FileName)), GetFileExInfoStandard, @fad)