>
>Hi Pablo,
>
>I've tried on a Novell
Still works! (grin)
>
>SYS(5) returns the current default drive
without a back slash. Making this call to a local FAT 32 drive using SYS(5) failed. GetLastError() returned 87 (ERROR_INVALID_PARAMETER). However, it worked when I used ADDBS(SYS(5)). So try adding the back slash.
This wasn't a problem cause I passed always K:\, but I changed the code
with:
IF PCOUNT() = 0
lpRootPathName = ADDBS(SYS(5))
ELSE
lpRootPathName = LEFT(lpRootPathName, 1) + ":\" && backslash and :
ENDIF
Still don't work, the problem I think is a net volume of a shared directory, if you don't have access to a server try this:
1. share a folder (ie: AAA)
2. from MSDOS issue:
NET USE M: \\myipaddress\AAA
ie:
NET USE M: \\192.168.77.1\AAA
(now you have a shared folder)
3. ? DISKSERIAL("M:\")
and you get 0.
Regards,