>FUNCTION DiskSpc
>PARAMETER m_D && Passed Drive letter
>m_DefDrive = FULLPATH(CURDIR()) && Store current path
>SET DEFAULT TO &m_D && Set to passed Drive letter
>m_RetVal = DISKSPACE() && Get the DiskSpace
>SET DEFAULT TO &m_DefDrive && Reset to the original path
>RETURN m_RetVal && Return the DiskSpace value
Thanks. That's a nice function but my restriction is that I can't do a CD or a SET DEFAULT TO in my application. I have a special reason for that.