Hi all,
I have problem with OS Windows 2000 Server Service pack3
The function LISDIR() works perfect on any other OS, than this one.
Anyone has this experience?
IS there any help?
Regards
-----------------------
// Replacement for FW's lisDir() which can't handle Win 98 network
// paths like \\compaq\c\faxserve
function lisDir(cPath)
local nHandle,lSuccess:=.f.
cPath:=lfn2sfn(alltrim(cPath))
cPath:=if(right(cPath,1)="\",left(cPath,len(cPath)-1),cPath)
if file(cPath+"\testfile.$$$")
lSuccess:=.T.
elseif ( nHandle := fcreate( cPath + "\testfile.$$$" )) > 0
fclose(nHandle)
ferase(cPath + "\testfile.$$$")
lSuccess := .T.
endif
return lSuccess
function direxists( cpath )
local adir
return ( len( adir := directory( cpath, 'D' ) ) > 0 .and. adir[1][5] == 'D' )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: nageswaragunupudi, Willi Quintana and 107 guests