On the PUSHD page, there is this example:
Code: Select all
C:\> pushd "C:\demo\demo.1" 2>nul && Echo Error not a folder
Code: Select all
C:\> pushd "C:\demo\demo.1" 2>nul || Echo Error not a folder
P.S., I am a bit confused if I should be posting this in the site feedback forum or here. Please let me know if I am in the wrong place. Thanks!