Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

MS-DOS command to show logged drive and directory? (Users)

posted by CluelessInSeattl, Seattle, USA, 08.03.2013, 19:58

> I'm not sure exactly what you mean by "logging",

Hi bretjohn,

Here's a link to an explanation of what I had in mind:

Logging on to a drive

Maybe they don't use that term anymore these days. That's what we had to do each time we put a disk in our CP/M computers.

> but isn't that what a
> "PROMPT $P$G" does?

I tried that in a short batch file called WHEREAMI.BAT

@echo off
echo Where am I?
PROMPT $P$G
echo Did it work?


What I had hoped to see on the screen was:

Where am I?
C:\BAT
Did it work?


But instead it just showed:

Where am I?
Did it work?

---
Will in Seattle
a.k.a. "Clueless"
Running MS-DOS 6.21

 

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