Hello GetMem,
I tried your program but sorry, it did not work: the new directory was only set temporarily and was restored to the old value, when the program terminates. This automatic restore I must avoid. Which part of FPC does this? A part of unit system? Can somebody help?
Hello wp,
the purpose of the program is to easily change the current directory of the DOS box, like old "Norton change directory" (ncd.exe) did. This workes in old Turbo Pascal, but does not work in FPC, so they are not compatible at this point. I must avoid the automatic restore of the former current directory when the program terminates.