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

POPCD Internal
Purpose: Return the directory last recently saved with the PUSHCD command.
Format: POPCD
Template: (none)
Path: Internal
POPCD is the counterpart to the PUSHCD command. It will recall the directory most recently saved by PUSHCD and return to it. If no directory can be popped from the stack, POPCD will return to the SYS: directory instead.

Example:

3.OS4:> CD Work:Examples
3.Work:Examples> PUSHCD
Work:Examples
3.Work:Examples> CD Ram:
3.RAM Disk:> POPCD
3.Work:Examples> POPCD
3.OS4:>
illustrates how the current directory can be pushed onto the stack and then popped from the stack later. When the stack runs out it returns to the SYS: directory. However, there is a more elegant way as described in PUSHCD.

See also: CD, PUSHCD, 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.