Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

PUSHCD Internal
Purpose: Save the current directory on a stack and optionally change it.
Format: PUSHCD [<directory name | pattern>]
Template: DIR
Path: Internal
PUSHCD saves the current directory onto a stack; if an optional <directory name> or <pattern> is provided, the current directory will be saved first and then changed. The PUSHCD command can be undone with the POPCD command.

Up to 100 directories can be pushed onto the stack.


3.OS4:> CD Work:Examples
3.Work:Examples> PUSHCD Ram:
3.RAM Disk:> POPCD
illustrates how the current directory can be pushed onto the stack before changing to a new directory, and then the previous directory can be popped from the stack later.

See also: CD, POPCD, SWAPCD.

Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.

Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.