=SET("DEFAULT") only returns the drive, not the full current path, so you need CURDIR() as Phillip pointed out.
>cPath=SET("PATH")
>cDefault=SET("DEFAULT")
>CD "D:\New Drive\New Dir"
>** Blah blah blah
>SET DEFAULT TO (cDefault)
>SET PATH TO (cPath)
>
>
>
>
>>>I want to change the SET DEFAULT. So first i want to save the value, set it, do something, then change it back. How do I save the value of SET DEFAULT?
>>>
>>>Thanks
>>>
>>>Brenda
>>
>>>>var = SYS(5) + CURDIR()
>>>>seT DEFAULT TO newdir
>>>>...
>>>>
>>>>SET DEFAULT TO (var)
>>
>>how do i save the current PATH?
>>
>>Brenda
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up