How to have MS-DOS "remember" logged drive and directory? (Users)
> > What exactly are you trying to accomplish?
>
> I want to make a batch file that "remembers" the current logged drive and
> directory and then later can "recall" and re-log me back onto that drive
> and directory after some operations have changed the logged drive and
> directory.
Maybe this will suit your need.
http://www.ausreg.com/files/gobak.exe
Place it somewhere IN YOUR PATH.
To save the current drive and directory, at the CLI type: gobak s
To return to the previously saved directory, type: gobak r
For help, type: gobak ?
The "saved" drive:\directory is written to the file: c:\gobak.dat.
This file is stored intact until you over-write it by typing "gobak s" again.
It works just fine on my MSDOS 6.20.
I hope it does what you want it to do.
---
AUSREG Consultancy http://www.ausreg.com
Tadpole Tunes http://www.tadpoletunes.com
Sna Keo Il http://www.tadpoletunes.com/sna_keo_il/
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