Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to have MS-DOS "remember" logged drive and directory? (Users)

posted by ron Homepage E-mail, Australia, 12.03.2013, 13:02

> > 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:

Back to the forum
Board view  Mix view
22762 Postings in 2122 Threads, 402 registered users (1 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum