China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 14:44
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How can I implement Windows' "Back" function under DOS? [Help] View 2,409 Replies 9
Original Poster Posted 2003-05-23 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
Windows has Back, which can return to the previous folder. Can this be done under DOS?
Floor 2 Posted 2003-05-23 00:00 ·  中国 江西 吉安 电信
高级用户
★★
Credits 667
Posts 135
Joined 2002-10-25 00:00
23-year member
UID 62
Gender Male
Status Offline
cd .. return to the previous folder
cd \ return to the root directory
================================= kickout
大功告成,打个Kiss!
Floor 3 Posted 2003-05-23 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
You misunderstood what I meant.
Under Windows, if you go directly from c:\temp1 to d:\temp2, "Back" can return to c:\temp1.
Floor 4 Posted 2003-05-23 00:00 ·  中国 江西 吉安 电信
高级用户
★★
Credits 667
Posts 135
Joined 2002-10-25 00:00
23-year member
UID 62
Gender Male
Status Offline
It seems not.
================================= kickout
大功告成,打个Kiss!
Floor 5 Posted 2003-05-23 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Why not try the PUSHD and POPD commands? It can be done.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 6 Posted 2003-05-23 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
I have never used these two commands before, I'll go back and study them first...
Floor 7 Posted 2003-06-01 00:00 ·  中国 广东 广州 教育网
初级用户
Credits 162
Posts 15
Joined 2003-06-01 00:00
23-year member
UID 2763
Gender Male
Status Offline
Where did you get all these commands from?
Could you give me some more?
My icq is 191884018
Email: hnb_a@tom.com
Floor 8 Posted 2003-06-01 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 9 Posted 2003-06-04 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
wengier, can you think of an even simpler way?
My requirement isn't high, I only need to "go back" one step.
Floor 10 Posted 2003-06-05 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: