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 bretjohn Homepage E-mail, Rio Rancho, NM, 12.03.2013, 00:39

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:

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