Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


February 2001

Command Prompt Tricks

RSS
Subscribe to Windows IT Pro | See More Remote Computing Articles Here | Reprints
Or get the Monthly Online Pass—only $5.95 a month!

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.

End of Article



Reader Comments
How can you use command prompt to make a message box on another computer on a home network?

Paul Bloomer March 10, 2003


please tell me some cool nifty tricks to do in command prompt (i like impressing my friends)
thanx


timothy November 05, 2003


please tell me some cool nifty tricks to do in command prompt (i like impressing my friends) thanx

joel March 24, 2004


I have learned a lot w/ this but would like to know more please send me some of your tricks

Tyler April 12, 2004


To make a message box on someone elses computer you type:NET SEND (their screen name) (text here)
EXAMPLE: net send ryan hi ryan

ryan April 15, 2004


To make a message box on someone elses computer you type:NET SEND (their screen name) (text here) EXAMPLE: net send ryan hi ryan .... what screen name is this refering to? and how can you find this out?

gen April 18, 2004


(screen name) is actually the network name; if u type "net view" it gives a list of all computers on the network and their network names

jamie April 30, 2004


I'm pretty sure it only works with a server but its their logon name

joe May 04, 2004


Could you please tell me some nifty tricks like turning off my brothere computer through the network with command prompt? Please that would be really cool

Kai May 11, 2004


It's not a screen name, it's the computer name. You can find out the computers name by going to control panel then double-click System. Go to the Computer name tab and that should tell you your computer's name. If you don't know the name, you have to use their IP address. You can find this out by typing "ipconfig" in the command prompt. You can only find out your comp name and IP address, to find out a friends you have to ask them or use their computers.

NOTE: You can use both the computer name and IP address if you're on a LAN. If you're not connected to the other comp on a LAN, but both computers are on the Internet, you can use the IP address.

jason May 19, 2004


 See More Comments  1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17   18   19   20   21   22   23   24   25   26   27   28   29   30   31   32   33 

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Windows Chief Leaving Microsoft

Kevin Johnson, the man most directly responsible for current and future versions of Windows, as well as Windows Live and Microsoft's online services, is leaving the company for a position at Juniper Networks. Johnson has been co-president or president ...

How can I limit Exchange mailbox size?

...

Microsoft Exchange Online: An ASP's Reaction

Does Microsoft Exchange Online and the company's other new online offerings spell the end of ASPs? Apptix, an Exchange service provider, sees much room for ASPs to offer features that Microsoft won't and to target different business segments. ...


Windows OSs Whitepapers Replay for Exchange: Enterprise Protection and an Affordable Price

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Shortcut Guide to SQL Server Infrastructure Optimization
With right tools and techniques, you can have a top-performing SQL Server infrastructure without having to cram your data centers so that they're overflowing. Download this eBook to learn how.

WinConnections Conference Fall 2008
Don’t miss the premier event for Microsoft IT Professionals in Las Vegas, November 10-13. Register and book your room by August 25 and receive a FREE room night (based on a three night minimum stay).

Become a fan of Windows IT Pro on Facebook!
Join us on Facebook and be a fan of Windows IT Pro!

Continuous Data Protection and Recovery for Exchange
Read this white paper to learn about Continuous Data Protection (CDP), Exchange 2007's local continuous replication and cluster continuous replication features.

Rev Up Your IT Know-How with Our Recharged Magazine!
The improved Windows IT Pro provides trusted IT content with an enhanced new look and functionality! Get comprehensive coverage of industry topics, expert advice, and real-world solutions—PLUS access to over 10,000 articles online. Order today!

Tips to Managing Messaging
Discover three fundamental mail and messaging management services - security, availability and control services - and how you can implement them in a Microsoft-centric mail and messaging environment.

Get It All with Windows IT Pro VIP
Stock your IT toolbox with every solution ever printed in Windows IT Pro and SQL Server Magazine plus bonus Web-exclusive content on hot topics. Subscribe to receive the VIP CD and a subscription to your choice of Windows IT Pro or SQL Server Magazine!



Solving PST Management Problems
In this white paper, read about the top PST issues and how to administer local/network PST files.

Bandwidth Monitoring Tool from SolarWinds
Identify largest bandwidth users in seconds. Get the free download now.

Transform Your Data Center at Brocade Conference 2008
Storage networking industry’s premier event at the MGM Grand, Las Vegas, September 22 - 24, 2008

Are You Litigation Ready?
Collecting and processing electronic data for e-discovery can be time-consuming and expose a business to significant legal risks. Get prepared with this free white paper

Order Your Fundamentals CD Today!
Gain an introduction to Exchange, learn server security requirements, and understand how unified communications can play a role in your messaging strategies with this free Exchange CD.

KVM over IP Solutions
Learn about a KVM over IP solution that is specifically designed to meet the needs of the distributed IT environment.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound
IT Library Technical Resources Directory Connected Home Windows Excavator SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing