Jump to content

FileExists($Path)


Recommended Posts

I do not know whether this question asked before.

On my system, I have a files without extension that are localized with japanese chars(on native english xp)

when calling to FileExists($Path)function the return is always 0 (zero).

What am I doing wrong?

for example:

$Path ="c:\Windows\"??????`粑粐`粑??A

If FileExists($Path) = 0 Then
consolewrite("Error: " & "THIS LINE SHOULD NOT BE WRITTEN SINCE THE PATH EXIST" & @LF)
EndIf
Edited by lsakizada

Be Green Now or Never (BGNN)!

Link to comment
Share on other sites

If there anything to do with my code, I would like to be more precise,

I write the path into UTF sqlite database

Read the Path from sqlite database into array

Only then I use the path with FileExist

I tested the path in message box function and the display of the path was OK.

If FileExists($aResult[$i][5]) = 0 Then
    MsgBox(0,0,$aResult[$i][5])
    ConsoleWrite("Error=" &$aResult[$i][5] & @LF)
    EndIf
Edited by lsakizada

Be Green Now or Never (BGNN)!

Link to comment
Share on other sites

Hi,

Looks like the files that I am testing has some sort of problems, i do not know what.

Basic tests with japanese and latine1 accents files/folders are working.

So please ignore my post anyway.

Regards...

Edited by lsakizada

Be Green Now or Never (BGNN)!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...