open command prompt window and change current working directory

This works for me:

@ECHO OFF
cmd.exe /K "cd C:\my\destination && C:"

The quoted string is actually two commands (separated by a double ampersand): The first command is to change to the specified directory, the second command is to change to the specified drive letter.

Put this in a batch (.BAT) file and when you execute it you should see a Command Prompt window at the specified directory.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)