I am using Windows DIR /c
My directory is: c:\Isl
English.txt
Eða.txt
Áéíóúýþæðö.txt
Ísland.txt
I run this program :
#Include "Win32api.inc"
Function PBMain
Local LastFile As String,AsciiBuff As String
Shell "cmd /c dir c:\isl\*.* /b > dir.dir"
Open "dir.dir" For Input As 1
While Not Eof(1)
Line Input #1,LastFile
AsciiBuff = Space$(Len(LastFile)+1)
CharToOem ByVal StrPtr(LastFile),ByVal StrPtr(AsciiBuff)
Err=0
Open "c:\isl\"+AsciiBuff For Input As 2
? AsciiBuff "->";Error$(Err)
Close 2
Wend
Close 1
End Function
And my output is:
English.txt->No Error
EÐa.txt->File not found
µ'¡¢£ìç'Ð".txt->Path/file access error
Ösland.txt->File not found
Still unable to open files with Icelandic char.
My directory is: c:\Isl
English.txt
Eða.txt
Áéíóúýþæðö.txt
Ísland.txt
I run this program :
#Include "Win32api.inc"
Function PBMain
Local LastFile As String,AsciiBuff As String
Shell "cmd /c dir c:\isl\*.* /b > dir.dir"
Open "dir.dir" For Input As 1
While Not Eof(1)
Line Input #1,LastFile
AsciiBuff = Space$(Len(LastFile)+1)
CharToOem ByVal StrPtr(LastFile),ByVal StrPtr(AsciiBuff)
Err=0
Open "c:\isl\"+AsciiBuff For Input As 2
? AsciiBuff "->";Error$(Err)
Close 2
Wend
Close 1
End Function
And my output is:
English.txt->No Error
EÐa.txt->File not found
µ'¡¢£ìç'Ð".txt->Path/file access error
Ösland.txt->File not found
Still unable to open files with Icelandic char.
Comment