Set temp directory on connetion and put dir command.