Linux – Windows Command Prompt auto-completion with forward slashes

autocompletecommand linelinuxwindows 7

I switch between Linux and Windows quite a lot and it's annoying the hell out of me that the Windows command prompt won't auto-complete directory paths when I press Tab if I use forward slashes like in Linux.

For example, if I'm trying to navigate to a directory 'bin':

cd /path/to/dir/b <tab> – this won't auto-complete to 'bin'

cd \path\to\dir\b <tab> – this will auto-complete.

Can I tell the Command Prompt to use forward slashes instead?

Best Answer

The short answer is no. The longer better answer is that since you are on Windows 7, you should move to using powershell instead of cmd which will autocomplete using /.

Related Question