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
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

The Memory-Optimization Hoax

Don't believe the hype. At best, RAM optimizers have no effect. At worst, they seriously degrade performance. ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

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.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

IT Connections
Dive into the new Microsoft platforms and products you implement and support with the experts from Microsoft, TechNet Magazine, Windows ITPro and industry gurus. There are 70+ sessions and interactive panels with networking opportunities.

Attention User Group Leaders...
Announcing the eNews Generator—a FREE HTML e-newsletter builder for user group leaders. Build your HTML and text e-newsletters in minutes and add Windows IT Pro & SQL Server Mag articles alongside your own message!.

Master SharePoint with 3 eLearning Seminars
Learn how to build a better SharePoint infrastructure and enable powerful collaboration with MVPs Dan Holme and Michael Noel. Register today!

Get SQL Server 2008 at WinConnections
Don’t miss Microsoft Exchange and Windows Connections conferences, the premier events for Microsoft IT Professionals in Las Vegas, November 10-13. Every attendee will receive a copy of SQL Server 2008 Standard Edition with one CAL.



Interested in Email Encryption?
Read about the advantages of identity-based encryption in this free report.

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

25% OFF Email Archiving Solution
Try the leading email archiving solution: GFI MailArchiver 6.

Virtualization Congress Oct. 14-16 in London
Don't miss Virtualization Congress, the premiere EMEA conference dedicated to hardware, OS and application virtualization. Oct. 14-16.
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 ITTV
IT Library Technical Resources Directory Connected Home Windows Excavator Windows 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