January 17, 2001 08:17 PM

Command Prompt Tricks

Rating: (178)
Windows IT Pro
InstantDoc ID #16412

If you're a frequent command prompt user, you'll appreciate the way this trick simplifies your life. This tip will work on all versions of Windows 2000 and Windows NT. By default, the prompt that the system presents you in a command prompt window shows the current drive letter and the full pathname. This prompt is configurable. For a list of configurable options, go to a command prompt and type

prompt /?

I spend much of my day dealing with remote file systems, so I often find myself wondering exactly where the J drive is mapped to. To refresh memory, I use the Net Use command. To modify the command prompt to reflect the remote path, I typed the following text at a command prompt

prompt $m$_$p$g

where $m echoes the Uniform Naming Convention (UNC) name of the drive letter that the command prompt currently displays; $_ inserts a carriage return and a line feed; and $p$g are the standard drive and pathname. This command caused the system to display the UNC name of my network drive.

To make this change stick on a Win2K system, you must modify an environment variable. You can do so from the Control Panel System applet's Advanced configuration option. All you have to do is click the Environment Variables button, create a system variable named prompt, and set its value to $m$_$p$g. This setting causes the system to display the remote network path every time you open a command prompt.

ARTICLE TOOLS

Add a Comment

hi, i want to learn how to change someone desktop wallpaper with mine one

sonulohat 12/29/2009 5:09:54 PM


Lrure

i would like to know how to make my PC on my school server a "ghost" as u said in one of your posts can u give me detailed instructions

cosac16 2/4/2009 12:18:49 PM


in reply to Hundredsouls, what's wrong trying to impress your friends? Adults impress their friends, neighbours, colleagues also by grooming and big cars, talk posh although it's sh^tty, so dont give us any of those grow up cliche, an old fa^t aint of no use no no one, leave us alone and if you are of no help, no one loses.

KucingKerong 10/9/2008 5:20:48 AM


GOOD

sashok001 9/18/2008 3:29:53 AM


hai

sashok001 9/18/2008 3:28:54 AM


Hmm.... i have been reading through these comments, and for god sakes how many children use this site!

If you are actually intrested in becoming a programmer i suggest you enroll on a course, even a home learning course. At the very least you caould buy a book.

Your not gonna learn to code in C+ or VB from a few comments of a post, so I don't see the point in trying. I feel sorry for the people that actually are trying to help people here.

Fair enough if you are having debugging problems and need some help with some code, but children trying to "impress" thier friends is ridiculous, do something constructive, like your school work!

Hundredsouls 6/9/2008 5:28:25 AM


i am on a school computer right now and most of this stuff isn't working .. it may be because i am not on an admin account but is there a way to become an admin... thanks for the help.

tbagownznoobz 4/3/2008 1:19:18 PM


how do you enter more than 1 character choice?

kylemcnistheman 2/17/2008 10:48:07 AM


hi. Because you gurus seem to know so much, i was wondering. i m using cmd to access files. how do u use choice to enter more than l digit ie. choice /n /c: *
*wwe instead of w, w, e?
thnks in advance

kylemcnistheman 2/17/2008 10:46:32 AM


Thank you,HALOSNIPER.Can you tell me more web pages like those that can be useful for me (if you have free time).Thanks again.

Luke1110 2/11/2008 1:47:58 PM


You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

eBooks

Playbook for a Virtualized Datacenter | During challenging times, optimizing the IT infrastructure becomes imperative. Many organizations are looking to extend their virtualization efforts to encompass the entire datacenter. Get a step-through of your technology options and more.

White Papers

As the advances in USB devices have made them invaluable to most business users’, they have also exposed organizations to enormous risks. Learn how to easily enforce device/port control and data encryption policies without requiring new infrastructure and additional admin overhead.

WEB SEMINARS

Is Flexible Lockdown Possible? Join Darren Mar-Elia for this free web webinar exploring the various methods you should consider to protect and control your desktops while also understanding the impact on the end user community.
View Seminar On-Demand.

eLearning Series

Windows IT Pro brings the experts direct to you to share their real-world perspective, experience, and expertise. During each event, three sessions stream in real time, allowing you to learn, to ask questions, and to get solutions.
Upcoming event: SQL Server Consolidation

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.