I needed to make a menu program that runs in DOS mode that can be changed by editing a simple text file so I can easily run my DOS programs. I got everything working just fine, except for one little thing. When I execute programs in another folder, some of these programs don't work, since they try to find their external files in the same folder as where the menu resides. So I need to know how to change the active path to the folder of the file I want to execute, execute the file, and change the active path back to the menu's folder. Does anyone know if this is possible in Pascal, and if it is, can you tell me how?
I'd also like to know if it's possible to reduce memory usage by Pascal while the external file is being executed.
Thanks in advance!
I'd also like to know if it's possible to reduce memory usage by Pascal while the external file is being executed.
Thanks in advance!