Is it possible that your current default directory is "tempsdir" when you are attempting to perform the rd command? I believe you will get an "access denied" error in this case.
Scott
>i thought some house-keeping is in order when dealing with a lot of temp files. so i create a temp sub-directory as a working area and remove it when i quit the project.
>
>my init codes are:-
>publ tempsdir
>tempsdir='c:\Jobname\temp'
>md (tempsdir)
>
>in my quit cmdbutton, its click code is:-
>
>clos all
>rd (tempsdir)
>
>but i get an "access denied" message. how can i rectify it? ta
Scott King
The Support Source Corporation