The Lurker

Latest posts | Archive

posted by ajf on 2002-10-18 at 04:27 pm

The Windows help for the pushd shell command says:

Stores the current directory for use by the POPD command, then changes to the specified directory.

PUSHD [path | ..]

path specifies the directory to make the current directory.

If Command Extensions are enabled the PUSHD command accepts network paths in addition to the normal drive letter and path. If a network path is specified, PUSHD will create a temporary drive letter that points to that specified network resource and then change the current drive and directory, using the newly defined drive letter. Temporary drive letters are allocated from Z: on down, using the first unused drive letter found.

You can't cd \\computername\sharename, but you can do a pushd \\computername\sharename, which creates a Z: (or Y: or whatever's available), and popd will remove the temporary drive letter.

Ick.

Related topics: Microsoft Windows

All timestamps are Melbourne time.