Hi
I had using file() without problem for many years. I don't want to change all my code
just because this.
I've continue to dig-in the problem and found kind-of a memory problem. If i cut the code by half the
problem disappeared. Looks like one problem is corrupting all the process.
I'm doing a simple testing like
some="c:\temp\lic.txt"
if file('&some')
? "File found"
else
? "file not found"
endif
some="c:\temp\licxxx.txt"
if file('&some')
? "File2 found"
else
? "file2 not found"
endif
When i cut the code by half; on the first segment the file is found and in
the second segment the file was not found, as it should.
But with all the code in place, if statment seem to become corrupted and
start having problems. In this case both segment give "file found" message
which is incorrect. Later in other segments, the if statment become complete
corrupted and start giving error by the IF line itself.
Now i'm thinking there is nothing related to win 10, but something else.
I'll keep you guys posted with new findings
Regards
> As Tore said, FILE() is not 100% trustable. I have had some problems using it in hosted environments, where FILE() can return FALSE for existing files. I create a IsFile() and IsFolder() funcions, using WSH:
>
>
> FUNCTION IsFile(pcFile)
> LOCAL oFSO
> oFSO = CREATE("Scripting.FileSytemObject")
> RETURN oFSO.FileExists(pcFile)
> ENDFUNC
>
> FUNCTION IsFolder(pcFolder)
> LOCAL oFSO
> oFSO = CREATE("Scripting.FileSytemObject")
> RETURN oFSO.FolderExists(pcFolder)
> ENDFUNC
>
>
> > Hi
> >
> > I tested all my programs in WIN 10 and everything was working very well,
> > now i'm experience a weird problems with the line
> >
> > if file('&some')
> >
> > where some is the name of a file. It say there is error in this line.
> >
> > This start to happen after a new window 10 updates. Has someone else
> > has this problem. It is getting me crazy.
> >
> > Regards
> > Jorge
>
>
>
> /* ---------------------------------- *\<br />> Victor J Espina S
>
www.victorespina.com.ve/wiki> "Change is the only constant in the Universe"