Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


January 2001

Win2K Command-Line Utilities


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

Command-prompt wizardry

Windows 2000 offers a vast toolkit full of impressive utilities and applets. In the December 2000 Top 10, I looked at Win2K's most valuable graphical utilities. This time, I unveil the 10 most useful Win2K utilities that you run from the command line.

10. FTP (ftp.exe) remains the workhorse of Win2K command-line utilities. When you type ftp at a command prompt, you open the FTP command shell, which you can use to send files to and receive files from remote systems. Using the —s switch, you can run FTP in batch mode, in which the FTP client reads all the FTP subcommands from the contents of a text file.

9. The Telnet client (telnet.exe), a graphical utility in Windows NT, is a character-based tool in Win2K. Although this change might not seem like a step forward, Microsoft has also enhanced Win2K's Telnet client with NT LAN Manager (NTLM) authentication support.

8. Microsoft System Information (msinfo32.exe) lets you use the command line to obtain system information. Although Windows Microsoft Diagnostics (WinMSD—winmsd.exe) is the primary NT 4.0 tool for retrieving system information, Microsoft has converted Win2K's version of WinMSD into a graphical Microsoft Management Console (MMC) snap-in. To retain command-line functionality, remember to include the full path to the executable file when you run msinfo32.exe:

"C:\Program Files\Common Files\Microsoft Shared\MSInfo\msinfo32.exe" /?

Otherwise, the system will bring up the new WinMSD snap-in.

7. The Infrared File Transfer Program (IRFTP—irftp.exe) utility gives you the opportunity to fire up your system's dormant infrared port. Irftp establishes a wireless infrared connection with another computer so that you can, for example, exchange files between a PC and your laptop.

6. The msiexec.exe component of Windows Installer gives you a command-line interface to the Windows 2000 Installer so that you can perform installation-related tasks such as copying files, updating the registry, and creating shortcuts. Msiexec.exe reads its installation information from an installation package (i.e., an .msi file) that contains specific instructions for installing, updating, or uninstalling a Windows application.

5. The Application Compatibility utility (apcompat.exe) lets you run applications written for earlier Windows versions. Simply fire up the tool, identify the legacy program you want to run, and enter the Windows version that you want the OS to report to the application.

4. The System File Checker (sfc.exe) scans and verifies all protected system files. If someone has changed a system file, sfc.exe can replace the modified file with the version of the system file that is saved in the \%systemroot%\system32\dllcache folder.

3. The Cipher command-line tool (cipher.exe) lets you encrypt, decrypt, or display a file or folder's encryption information. You can also use cipher.exe to find out who has encrypted a specific file or folder.

2. PathPing (pathping.exe) is a new tool that combines features of NT 4.0's Ping and Tracert commands. PathPing can tell you whether you're experiencing data loss at one or more router hops on the way to a target host. To do so, the utility sends Internet Control Message Protocol (ICMP) packets to each router in the path.

1. The Recovery Console (RC) lets you recover your system from DLL corruption errors and other file-related system problems. You can boot your system to a command window with complete NTFS support. The RC doesn't install by default; you install the utility by running the \i386winnt32.exe /cmdcons command. To run the RC, select the Recovery Console option from the system boot options menu, which displays at system startup.

End of Article



Reader Comments
Who wrote about a way to run a program on a Windows 2000 workstation when the program states that it will run only under Windows 95? I'm sure I read the tip in Windows 2000 Magazine, but I can't find the article. I think the solution is a DOS command. Can you help?<br>

Eric Ritter May 08, 2001


<i>,br>I covered this tool in Top 10: "Win2K Command-Line Utilities" (January 2001). The tool is the Application Compatibility (apcompat.exe) utility, and you can install it from the Support folder on the Win2K CD-ROM.</i> <br>
<i> --Michael Otey</i>

Michael Otey May 08, 2001


sir,
i want win2k network dos commands.Because now i am prepare mcse certi. can u help me?. Thank U.

karan November 08, 2003


sir, i want win2k network dos commands.Because now i am prepare mcse certi. can u help me?. Thank U....

Viet Dang-Minh January 05, 2004


Never even heard about few of these commands like IRFTp and Pathping. perfect !!!

Thank you,.

Amit February 25, 2004


Dear Sir/Madam,

I read this article and you mentioned : Using the —s switch, you can run FTP in batch mode, in which the FTP client reads all the FTP subcommands from the contents of a text file, is there an example for this

Regards



Min March 08, 2004


For an example of an ftp script look up symantec document id 2002091816510548 . The "cegetter.bat" and "cescript.txt" are what you're after. One downside of ftp.exe is it won't work in passive mode. If you need that, then batchftp is a freebie low end ftp client that you can also schedule.

Reg May 16, 2004


Are the xp cmd tools dsquery,etc. available to use on W2K or only W2k3 and XP?

Mike Jerik May 24, 2004


Your Comments (required): Hi Everyone lets c if some one can help me. I want to execute a batch file through my workstation running a batch file or script.

Ashish Smith July 08, 2004


concise and yet informative-you mentioned several interesting programs i didn't previously know about. i'm looking forward to reading more of your articles in the future.

i did wonder however just how secure cipher was.

thanks.

Anonymous User January 06, 2005 (Article Rating: )


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Events WinConnections and Microsoft® Exchange Connections

Deep Dive into Windows Server 2008 R2 presented by John Savill

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 Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


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 DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement