![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 16:31 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How can I implement Windows' "Back" function under DOS? [Help] |
| Printable Version 2,410 / 9 |
| Floor1 hunome | Posted 2003-05-23 00:00 |
| 银牌会员 Posts 721 Credits 2,265 | |
|
Windows has Back, which can return to the previous folder. Can this be done under DOS?
|
|
| Floor2 kickout | Posted 2003-05-23 00:00 |
| 高级用户 Posts 135 Credits 667 | |
|
cd .. return to the previous folder
cd \ return to the root directory |
|
| Floor3 hunome | Posted 2003-05-23 00:00 |
| 银牌会员 Posts 721 Credits 2,265 | |
|
You misunderstood what I meant.
Under Windows, if you go directly from c:\temp1 to d:\temp2, "Back" can return to c:\temp1. |
|
| Floor4 kickout | Posted 2003-05-23 00:00 |
| 高级用户 Posts 135 Credits 667 | |
|
It seems not.
|
|
| Floor5 Wengier | Posted 2003-05-23 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Why not try the PUSHD and POPD commands? It can be done.
|
|
| Floor6 hunome | Posted 2003-05-23 00:00 |
| 银牌会员 Posts 721 Credits 2,265 | |
|
I have never used these two commands before, I'll go back and study them first...
|
|
| Floor7 ken | Posted 2003-06-01 00:00 |
| 初级用户 Posts 15 Credits 162 | |
|
Where did you get all these commands from?
Could you give me some more? My icq is 191884018 Email: hnb_a@tom.com |
|
| Floor8 Wengier | Posted 2003-06-01 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
The DOS window in WinNT/2K/XP already has commands like PUSHD and POPD!
If it's under pure DOS, then you need to use the PUSHD and POPD in tools like BATCHMAN to do it. |
|
| Floor9 hunome | Posted 2003-06-04 00:00 |
| 银牌会员 Posts 721 Credits 2,265 | |
|
wengier, can you think of an even simpler way?
My requirement isn't high, I only need to "go back" one step. |
|
| Floor10 Wengier | Posted 2003-06-05 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
For example, under D:\DOS, enter:
PUSHD C:\WINDOWS At this point you'll be in the C:\WINDOWS folder, just like with the CD command. Then enter the POPD command and you can return to D:\DOS. |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |