[fpc-pascal] chdir problem? -- 2nd request
James_Wilson at i2.com
James_Wilson at i2.com
Mon Jan 15 15:40:55 CET 2001
> You could do this easily by calling
> Exec (GetEnv ('ComSpec'), '/K CD ' + NewDirectory);
> and the directory WILL be changed even after the program exits,
> however, then you have a nested command interpreter running and
> you have to type EXIT twice. I don't think Jim would like this
> solution, either.
You're correct, I would prefer not to have to resort to such a thing.
Besides, when you do type EXIT my file-find program continues where it left
off, which is not only distracting but litters the display with what is
effectively two screens of information (the original one and whatever
remains from the second copy of cmd.exe). Certainly not very elegant. I
guess I'll continue to explore my options. :-(
Jim
More information about the fpc-pascal
mailing list