you would do it like you would in a dos window.
for example here would be the lines of a bat file to change to the c:\hello\bye directory

c:
cd hello\bye