RE: Change Directory
> How do I change the current directory to the directory from which the
> program executed? I'm looking at command_line()[2] but then I have to
> parse
> out the program name. Isn't there just a chdir() command? I don't want
> to do
> a system call, either. Although I don't know why not. Anyway... anybody?
When the program first loads, call built in function [current_dir()]
from [file.e]. This returns a sequence string such as "C:\EUPHORIA\DOC"
if the program was run from there. Save this in a global sequence
(SavedDir) and when you need to reset this call [chdir(SavedDir)] also
from [file.e].
Don
|
Not Categorized, Please Help
|
|