How to have MS-DOS "remember" logged drive and directory? (Users)
What exactly are you trying to accomplish?
If you are wanting to write a batch file to do something, and want to make sure that after the batch file is done you are in the same drive and directory where you started, things actually get pretty complicated and you will probably want to use programs like PUSHD and POPD. I suspect that's what you are trying to do, and if so, I can explain a little further as to why simply setting an environment variable is insufficient.
If you're just trying to do things from the command line, and not with a batch file, an environment variable /might/ work, but even in that situation PUSHD and POPD are a better alternative.
Complete thread:
- MS-DOS command to show logged drive and directory? - CluelessInSeattl, 08.03.2013, 16:45 (Users)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- MS-DOS command to show logged drive and directory? - bretjohn, 08.03.2013, 16:50
- MS-DOS command to show logged drive and directory? - CluelessInSeattl, 08.03.2013, 19:58
- MS-DOS command to show logged drive and directory? - rr, 08.03.2013, 20:32
- MS-DOS command to show logged drive and directory? - CluelessInSeattl, 08.03.2013, 22:51
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 10.03.2013, 20:02
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 00:31
- PUSHD and POPD in MS-DOS 6.21? - glennmcc, 11.03.2013, 00:54
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 02:06
- PUSHD and POPD in MS-DOS 6.21? - glennmcc, 11.03.2013, 03:39
- PUSHD and POPD in MS-DOS 6.21? - marcov, 11.03.2013, 20:28
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 02:06
- PUSHD and POPD in MS-DOS 6.21? - rr, 11.03.2013, 21:01
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 23:34
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 12.03.2013, 00:24
- PUSHD and POPD in MS-DOS 6.21? - glennmcc, 12.03.2013, 02:07
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 12.03.2013, 00:24
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 23:34
- PUSHD and POPD in MS-DOS 6.21? - glennmcc, 11.03.2013, 00:54
- How to have MS-DOS "remember" logged drive and directory? - ron, 11.03.2013, 05:22
- How to have MS-DOS "remember" logged drive and directory? - georgpotthast, 11.03.2013, 08:00
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 11.03.2013, 15:39
- How to have MS-DOS "remember" logged drive and directory? - bretjohn, 12.03.2013, 00:39
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 12.03.2013, 00:59
- How to have MS-DOS "remember" logged drive and directory? - nidud, 12.03.2013, 12:45
- How to have MS-DOS "remember" logged drive and directory? - ron, 12.03.2013, 13:02
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 12.03.2013, 18:42
- How to have MS-DOS "remember" logged drive and directory? - RayeR, 13.03.2013, 01:26
- How to have MS-DOS "remember" logged drive and directory? - bretjohn, 13.03.2013, 04:12
- How to have MS-DOS "remember" logged drive and directory? - RayeR, 13.03.2013, 01:26
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 12.03.2013, 18:42
- How to have MS-DOS "remember" logged drive and directory? - bretjohn, 12.03.2013, 17:03
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 12.03.2013, 00:59
- How to have MS-DOS "remember" logged drive and directory? - j_hoff, 13.03.2013, 21:44
- How to have MS-DOS "remember" logged drive and directory? - bretjohn, 12.03.2013, 00:39
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 11.03.2013, 15:39
- How to have MS-DOS "remember" logged drive and directory? - georgpotthast, 11.03.2013, 08:00
- PUSHD and POPD in MS-DOS 6.21? - CluelessInSeattl, 11.03.2013, 00:31
- How to have MS-DOS "remember" logged drive and directory? - CluelessInSeattl, 10.03.2013, 20:02
- MS-DOS command to show logged drive and directory? - CluelessInSeattl, 08.03.2013, 22:51
- MS-DOS command to show logged drive and directory? - bretjohn, 08.03.2013, 16:50
Mix view