Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 3085

Stupid cmd.exe tricks: Changing directories with forward slashes instead of backslashes

$
0
0

I observed one of my colleagues perform this trick with cmd.exe: You can pass a path with forward slashes (instead of backslashes) to the cd command, provided the first character is not a slash.

cd relative/path       &rem okay
cd ../relative/path    &rem okay
cd /absolute/path      &rem not okay
cd c:/absolute/path    &rem okay

It's not much of a trick, but it comes handy once in a while.


Viewing all articles
Browse latest Browse all 3085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>