You mean the environment variable PATH.

You CANNOT change it from inside a program and have it be permanent. The change has to be made to AUTOEXEC.

For a minute I thought you were really confused and wanted the chdir function.