# Change Directory
> [HTML Version](changedirectory.htm)
On exiting A-Shell/DOS, you are normally returned to the original DOS working directory, regardless of any [PPN](ppn.htm.md) changes which occurred while A-Shell was running. If you wish the working directory to be set according to the last A-Shell PPN, then the **-c** switch should be specified. Thus a batch file to actually change the current working directory, via the LOG command would contain both switches:
ashell -e -c log sys: