Shine Tutorial    
  shinetutorialtopsideimage
HOME DOS OS C,C++ HTML CSS XML JAVA ASP PHP SQL OFFICE MULTIMEDIA MORE... CERTIFICATION ABOUT
 
S T ADVT
TUTORIALS
 

MS - DOS Command

« Previous Next Chapter »

Microsoft DOS pushd command

Quick links

About pushd
Availability
Syntax
Examples

About pushd

Stores a directory or network path in memory so it can be returned to at any time.

Availability

The pushd command is an internal command that is available in the below Microsoft operating systems.

Windows 2000
Windows XP
Windows Vista
Windows 7

Syntax

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.

Examples

pushd ..

If this command was typed when you were at C:\Windows\System32 directory, for example, this directory would be stored. If you then wanted to return back to this directory you would use the POPD command.



« Previous Next Chapter »