>Hello,
>
>The following lines of codes helped me to erase cPatname.dbf file in my C: drive
>I would like know to delete cPatname.dbf in the Novell server that could be any available drive such N:,M:,O:
>
>Greatly appreciated for any code changes.
>
>Thanks,
>PP
>
> select dbdelrpt
>
> GO TOP
> count to npatname
> go top
>
> for nCurrentFile=1 to npatname
>
> cPatname=alltr(patname)
> bChkmark=chkmark
>
> cFileDbf='c:'+cPatname+'.DBF' && Any drive in Novell server mapping
> && instead of only c: Drive
> if bchkmark=.T.
>
> erase &cFileDbf
>
> endif
>
> SELECT dbdelrpt
> SKIP
> next
We use a UNC (universal Naming Convention) to refer to our Novell files. So that does not depend on mapping. So I would use \\402fs1\data to refer to the data volume on the novell server. If I require to delete a file I would use ERASE \\402fs1\data\vfapps\data\myfile.dbf
You might try the UNC concept as that does not depend on mapping only that the person be logged in to the server.
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope