DOS Tips
Creating a DOS Prompt to the Root of the C:\ Drive
- Added 10/16/09
Showing Long and Short Filenames - Added
1/8/00
DOS Command History - Added 12/21/99
Changing a File's Date and Time Stamp - Added 12/21/99
Removing the Microsoft Copyright from a DOS Prompt - Added 10/16/98
Setting the Number of Lines in a DOS Window -
Submitted 9/19/98
Starting DOS Fast - Submitted 6/7/98
Using Long Filenames in a DOS Box - Updated 4/12/98
Expanding Full Path or File Name - Submitted 8/30/97
Adding DOSKEY to your DOS Window - Added 4/6/97
Showing DOS Error Codes - Added 4/6/97
Changing Directories in DOS - Added 1/26/97
Entering Long Paths in a DOS Window - Added 1/26/97
Having DOS Programs Prompt for Input - Added 1/26/97
Verbose Directory Listing - Submitted 10/24/96
Easy way to open up DOS prompt in a specific directory -
Added 6/20/96
Creating a DOS Prompt to the Root of the C:\
Drive
Added 10/16/09
To open a Command window at a simple C:\ prompt:
Create a Windows shortcut using the following syntax:
Target: %SystemRoot%\system32\cmd.exe /k "cd\"
Tip submitted by Barry Conner
Showing Long and Short Filenames
Added 1/8/00
There are two additional switches that can be used when doing a DIR
- /B - Shows only the long filename, no details
- /Z - Shows the short filename, with details
- /B /Z - Shows only short filename, with no details
DOS Command History
Added 12/21/99
If you use DOSKEY in either your AUTOEXEC.BAT file or as part of the
properties of your DOS Window,
you can show and recall the history of commands you enter and the DOS
prompt.
- To recall previous commands, use the up arrow key.
- A complete list of previous commands can be shown if you press the F7 key
- To use one, press F9 and the number of the command you want to use
- To clear the cache, press Alt+F7
Changing a File's Date and Time Stamp
Added 12/21/99
You can change the Date and Time stamp of a file to the current setting.
Type:
COPY filename /B + ,, /Y
Removing the Microsoft Copyright from a DOS
Prompt
Added 10/16/98
By default, when you open a DOS window, the Microsoft Copyright notice shows.
To disable it, add the /K switch in the Program tab
For example: C:\WINDOWS\COMMAND.COM /k
Setting the Number of Lines in a DOS Window
Submitted 9/19/98
To set the number of lines displayed when you open up a DOS window:
- Create a shortcut for the MS-DOS Prompt
- Right click on it
- Select Properties
- Click on the Program tab
- In the Batch file:, line enter mode con: lines=xx (where xx
is the number of lines you want displayed)
- Valid numbers for xx are 25 or 43
Submitted by John Karwoski
Starting DOS Fast
Want to start DOS fast outside of the START button? Drag it to your desktop.
Want to start it even FASTER without the mouse?
- Change the shortcut properties of the DOS icon to something unique, like
Ctrl-Alt-Z.
- Then to start DOS from within Win95/98?/NT just enter C-A-Z and poof! it's
there.
- If you toggle away, and hit the shortcut sequence again, you'll get the
"old" DOS box, not a new one.
Submitted by Carra Bussa
Long Filenames in a DOS Box
Submitted 4/12/98
More long filenames in DOS paths...
You don't need the close double quote when entering long folder names in DOS.
CD "\program files
works as well as
CD "\program files"
Submitted by Patrick Knoll
Submitted 2/19/96
You can use long file names in a MS DOS Box.
All you have to do is pu the long file name in quotes.
Example: cd "program files"
Submitted by Simon Story
story@interlog.com
Expanding Full Path or File Name
NT 4.0 Only
Submitted 8/30/97
Expand full path/file name with defined char using Command Prompt in Win NT
4.0
You can expand the full name of a file or directory using a character of your
choice.
- Close all Command Prompts
- Start the Registry Editor
- Open HKEY_CURRENT_USER\Software\Microsoft\Command Processor
- If not present, add Key: CompletionChar
- If you like to use TAB-Key for expand: set value (REG_SZ): "9"
You can test it:
- Open up a DOS window
- Type: CD (followed by TAB)
- The first available directory will appear
- Press TAB again, the next one will appear
- The same can be done with the DIR command
Submitted by Uwe Beierlein
Adding DOSKEY to your DOS Window
Added 4/6/97
One way to have DOSKEY available when you open a DOS window would be to have
it in the AUTOEXEC.BAT file.
This takes away conventional memory, even when you don't have a DOS window open.
To only use DOSKEY when you open a DOS window:
- Right click on your DOS shortcut
- Select Properties
- Click on the Program tab
- Add DOSKEY > NUL to the Batch File field
- You can also add /INSERT if you prefer
Showing DOS Error Codes
Added 4/6/97
If you want to see what error codes are being generated by DOS programs,
start your DOS session with the addition of a /Z parameter to the
COMMAND.COM program.
Changing Directories in DOS
Added 1/26/97
Normally, you can move up one directory level by typing CD ..
The DOS with Windows95 allows you to continue moving up beyond the first
directory by simply adding more periods
For example, to move up two levels, type CD ...
Entering Long Paths in a DOS Window
Added 1/26/97
If you have to enter a long path and program name in a DOS window,
- Open up the Explorer
- Go to the folder you want
- Drag it to the DOS window
- The path will be inserted into the window
This can come is useful with the long path names and all the ~'s you would
normally need to type.
If you need to change directories, type in the CD before you drag the
directory.
Having DOS Programs Prompt for Input
Added 1/26/97
When you normally create a shortcut for a DOS program, it does not prompt you
for any input and just runs the program
To change that, simply add a ? after the program name in the CMD
field.
For example:
C:\WINDOWS\COMMAND\EDIT.COM ?
will start the DOS editor and prompt you for a file name to edit.
Verbose Directory Listing
Submitted 10/24/96
To see your free memory and other useful info in detail:
- Open a DOS box
- Go to the directory that you want to get specific info about, or if you
just want to see memory info go to any directory (I use the root).
- Type DIR /V
- The /v argument stands for "verbose".
- All sorts of good information comes up.
Submitted by Brian Cohen
bcohen@interserv.com
Easy way to open up DOS prompt in a specific directory
Added 6/20/96
With the advent of long directory names, it can be difficult to open up a DOS
box and CD to the directory you want
particularly if it is several layers of long names deep.
An easy way is to:
- Open up Explorer and highlight the directory you want to be in
- Select Run / Command from the Start Menu
- Your DOS prompt will now be in the directory you highlighted in Explorer
This site is copyrighted. No portion may be reproduced
without my written permission.
- Microsoft Exchange Server 2003 Enterprise
- Microsoft Exchange Server 2007
- Microsoft Expression Studio 1.0
- Microsoft Frontpage 2003
- Microsoft Frontpage 2003 (DEUTSCH)
- Microsoft ISA 2000 Server
- Microsoft Macro Assembler 32 v7.0
- Microsoft Money 2004
- Microsoft Money 2006 Deluxe
- Microsoft Money Home & Business 7
- Microsoft Office 2003 Professional (DEUTSCH) with Business Contact Manager
- Microsoft Office 2003 Professional with Business Contact Manager for Outlook
- Microsoft Office 2007 Enterprise
- Microsoft Office 2007 Enterprise USB Edition
- Microsoft Office Accounting Professional 2009 UK
- Microsoft Office XP Professional
- Microsoft OneNote 2003 Professional
- Microsoft OneNote 2003 Professional (DEUTSCH)
- Microsoft Picture It! Premium 10.0
- Microsoft Plus! for Windows XP
- Microsoft Project 2003 Professional (DEUTSCH)
- Microsoft SQL Server 2005 Developer Edition
- Microsoft Student 2009 with Encarta Premiun
- Microsoft Visio 2003 Professional (DEUTSCH)
- Microsoft Visio 2007 Professional
- Microsoft Visual Basic 6.0 Professional
- Microsoft Visual Basic RAD Professional v1.01
- Microsoft Visual FoxPro 8.0
- Microsoft Visual Studio 2005 Professional Edition
- Microsoft Windows 7
- Microsoft Windows 7 x64
- Microsoft Windows 7 x64 French
- Microsoft Windows Home Server
- Microsoft Windows Server 2008
- Microsoft Windows Vista Business
- Microsoft Windows Vista SP2 x64
- Microsoft Windows Vista Ultimate
- Microsoft Windows Vista Ultimate Full Version OEM 64-bit (includes SP1)
- MS Project 2003 Professional - Full Version
- MS Project 2003 Server - Full Version
- MS SQL Server 2000 - Full Version
- MS Visual Studio.NET 2003 Enterprise Architect - Full Version
- MS Windows 2000 Professional - Full Version
- MS Windows 2000 Server - Full Version
- MS Windows 2003 Enterprise Server
- MS Windows XP Professional with SP1
- MS Windows XP Professional x64
- MS Works 7.0
- Adobe Acrobat 8.0 Professional
- Adobe Creative Suite 3 Design Premium for Win
- Adobe Creative Suite 3 Master Collection for Mac
- Adobe Creative Suite 3 Master Collection for Win
- Adobe CS4 Master Collection
- Adobe CS4 Master Collection for mac
- Adobe Dreamweaver CS3
- Adobe Photoshop CS2 V 9.0
- Adobe Photoshop CS3 Extended
- Adobe Photoshop CS3 Extended for Mac
- Autodesk AutoCAD 2008
- Autodesk Autocad 2009 32bit
- Autodesk AutoCAD LT 2008
- Autodesk Navisworks Simulate 2010
- Cakewalk Sonar 8.0 Producer Edition
- G DATA InternetSecurity 2008
- Microsoft MapPoint Europe 2009
- Microsoft Office 2003 Professional with Business Contact Manager for Outlook
- Microsoft Office 2007 Enterprise
- Microsoft Office XP Professional
- Microsoft Windows Server 2008
- Microsoft Windows Server 2008 + Microsoft SQL Server 2008
- Microsoft Windows Vista Business
- Microsoft Windows Vista SP2 x64
- Microsoft Windows Vista Ultimate
- Parallels Desktop 3.0 (build 5584) for Mac
- SolidWorks 2009 x32
- SolidWorks 2009 x64
- Adobe Illustrator CS4
- Adobe Premiere Pro CS4 Multilanguage
- Adobe RoboHelp 8.0
- AllFusion ERwin Data Modeler
- Ashampoo AntiSpyWare 2
- Ashampoo Cover Studio 2
- Autodesk AutoCAD Land Desktop 2009
- Autodesk Inventor 2010
- Autodesk Maya 2010 x64
- AVG Internet Security 8.5
- Cakewalk Dimension Pro Virtual Synthesizer Win/Mac
- Cakewalk Rapture v 1.2
- Cakewalk Sonar 7.0 Producer Edition
- Cakewalk Sonar 8.0 Producer Edition
- Corel Designer Technical Suite x4
- CyberLink PowerDVD 9 Ultra Version
- DVD PHOTO SLIDESHOW 7
- Final Cut Studio
- FXhome VisionLab Studio Pro 10
- GraphiSoft ArchiCAD 12
- Kaspersky Internet Security 2010 9.0.0.459 Final
- Logic Studio 9 with Audio content
- Lynda.com Flash CS4 Professional: Building UI Elements
- Lynda.com InDesign CS4: 10 Habits of Highly Effective Pros
- Mac OS X Server version 10.4
- MAGIX MP3 Maker 14 Deluxe
- MAGIX Music Maker 15 Premium
- MakeMusic Finale 2009
- Maple 13
- McAfee Internet Security 2009
- Microsoft Office 2007 Enterprise USB Edition
- Microsoft Picture It! Premium 10.0
- Microsoft Windows 7
- Microsoft Windows 7 x64
- Microsoft Windows 7 x64 French
- MS Windows XP Professional x64
- Nuance OmniPage 17 Pro with Paper Report
- onOne PhotoFrame 4 Professional Edition
- onOne Phototools 2 Professional
- Photodex ProShow Gold
- Pinnacle Hollywood FX 5 Pro
- ProgeSoft ProgeCAD 2009 Professional
- QuarkXPress 8.02
- QuarkXPress 8.02 for mac
- Reallusion Crazytalk 6 PRO
- Relux Light Simulation Tools 2009
- Rosetta Stone Version 3: Arabic Level 1, 2 for mac
- Rosetta Stone Version 3: Chinese (Mandarin) Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: French Level 1, 2 & 3 Set
- Rosetta Stone Version 3: French Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: German Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: Italian Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: Japanese Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: Portuguese(Brazil) Level 1, 2 Set for mac
- Rosetta Stone Version 3: Russian Level 1, 2 & 3 Set for mac
- Rosetta Stone Version 3: Spanish(Latin America) Level 1, 2 & 3 Set for mac
- Serif PhotoPlus X3
- SlySoft AnyDVD HD v6.5.7.1
- Tekla Structure 15
- The Foundry Nuke: Maximum 2009
- Uniblue PowerSuite 2009
- Visual FoxPro 9
- Acronis Disk Director Server 10.0
- Acronis Disk Director Suite 10.0
- Acronis Disk Editor v6.0.360
- Acronis Drive Cleanser v6.0 Build 383
- Acronis Migrate Easy Deluxe v1.0.0.43
- Acronis & Paragon Universal Boot CD USB 2009 1.0
- Acronis PartitionExpert 2003
- Acronis Privacy Expert Suite 7.0
- Acronis Recovery Expert Deluxe
- Acronis True Image 7.0
- Acronis True Image Echo Server for Windows 9.5
- Acronis True Image Enterprise Server 9.1.3666
- Acronis True Image Home 11.0
- Acronis True Image Home 2009 12.0.09709
- Acronis True Image Workstation 9.1.3887
- Adobe Acrobat 7.0 Professional
- Adobe Acrobat 8.0 Professional
- Adobe Acrobat V 6.0 Professional PC
- Adobe After Effects 7.0 Standard
- Adobe After Effects CS3
- Adobe Atmosphere 1.0
- Adobe Audition 2.0
- Adobe Audition 3.0
- Adobe Contribute CS3
- Adobe Creative Suite 2 Premium for Windows
- Adobe Creative Suite 3 Design Premium for Win
- Adobe Creative Suite 3 Master Collection for Win
- Adobe Creative Suite 4 Design Premium for Win
- Adobe CS4 Master Collection for mac
- Adobe Dreamweaver CS3
- Adobe Encore CS3
- Adobe Encore DVD 2.0
- Adobe Fireworks CS3
- Adobe Flash CS3 Professional
- Adobe Flex v.3.0.2
- Adobe FrameMaker 7.0
- Adobe FrameMaker 8.0
- Adobe FrameMaker 9.0
- Adobe GoLive CS V 7.0 PC
- Adobe GoLive CS2
- Adobe Illustrator CS V 11.0 PC
- Adobe Illustrator CS3
- Adobe InDesign CS V 3.0 PC
- Adobe InDesign CS2
- Adobe InDesign CS3
- Adobe Photoshop Album V 2.0
- Adobe Photoshop CS v.8.0
- Adobe Photoshop CS2 V 9.0
- Adobe Photoshop CS3 Extended
- Adobe Photoshop Elements 4.0
- Adobe Photoshop Elements 5
- Adobe Photoshop Elements 6.0
- Adobe Photoshop Lightroom 1.1
- Adobe Photoshop Lightroom 1.2 Multilingual
- Adobe Photoshop Lightroom 2 for Mac
- Adobe Premiere 2.0
- Adobe Premiere Elements 1.0
- Adobe Premiere Elements 2.0
- Adobe Premiere Pro 1.5
- Adobe Premiere Pro CS3
- Adobe Premiere Pro CS4 Multilanguage
- Adobe Presenter 7
- Adobe RoboHelp 8.0
- Photoshop CS3 Premium Learning Suite
- Alias Maya 7.0 Unlimited
- Alias MotionBuilder 6.0
- Alias StudioTools 11.02
- Apple iWork08
- Apple QuickTime Pro v7.4.5
- Final Cut Studio
- Logic Studio 9 with Audio content
- Mac OS X Server version 10.4
- Ashampoo AntiSpyWare 2
- Ashampoo Burning Studio 7.21
- Ashampoo Burning Studio 8 2009
- Ashampoo Cover Studio 2
- Ashampoo Office 2008
- Ashampoo UnInstaller Platinum 2.8
- Ashampoo WinOptimizer 4
- Autodesk 3ds Max 2009
- Autodesk 3ds Max 8.0
- Autodesk 3ds Max 9.0
- Autodesk 3ds Max Design 2009 DVD (x86, x64)
- Autodesk Alias 2010 for Mac
- Autodesk Alias Design 2010
- Autodesk AliasStudio 2008
- Autodesk Architectural Desktop 2006
- Autodesk Architectural Studio 3.0
- Autodesk AutoCAD 2006
- Autodesk AutoCAD 2007
- Autodesk AutoCAD 2008
- Autodesk Autocad 2009 32bit
- Autodesk Autocad 2009 64bit
- Autodesk AutoCAD Electrical 2006
- Autodesk AutoCAD Land Desktop 2009
- Autodesk AutoCAD LT 2008
- Autodesk AutoCAD Mechanical 2005
- Autodesk AutoCAD Revit Architecture Suite 2009
- Autodesk Building Systems 2006
- Autodesk Civil 3D - Civil Design Companion 2007
- Autodesk Civil 3D 2006
- Autodesk Combustion 2008
- Autodesk Inventor 2010
- Autodesk Inventor LT x32
- Autodesk Inventor LT x64
- Autodesk Maya 2008
- Autodesk Maya 2010 x64
- Autodesk Navisworks Simulate 2010
- Autodesk Revit Structure 2009
- Autodesk Robot Structural Analysis Professional 2009
- Autodesk Showcase 2009
- Autodesk SketchBook Pro 2010
- Discreet Combustion 4.0 for Windows
- Discreet Lustre 2.0
- Corel Bryce 5.0
- Corel Designer 10.0
- Corel Designer Technical Suite 12.0
- Corel Designer Technical Suite x4
- Corel KPT 6
- Corel Paint Shop Pro PHOTO XI
- Corel Painter IX
- Corel Photobook 10.3
- Corel Print House 6
- Corel Procreate KnockOut 2.0
- Corel Procreate KPT Effects
- Corel Rave 2
- Corel Smart Graphics Studio 1.1
- Corel Ventura 10.0
- Corel WordPerfect Office X3 Standard
- Corel XMetaL Author 4.0
- CorelDraw Graphics Suite X3
- CorelDRAW Graphics Suite X4
- eBook: Adobe Acrobat 7 Classroom in a Book(Adobe Press)
- eBook: Adobe Acrobat 7 in a Snap
- eBook: Adobe Acrobat 7 Tips and Tricks The 150 Best(Adobe Press)
- eBook: Adobe After Effects 7.0 Classroom in a Book (Adobe Press)
- eBook: Adobe After Effects 7.0 Classroom in a Book (Adobe Press)
- eBook: Adobe Audition 2.0 Classroom in a Book (Adobe Press)
- eBook: Adobe Creative Suite 2 Classroom in a Book (Adobe Press)
- eBook: Adobe Creative Suite 2 How Tos 100 Essential Techniques
- eBook: Adobe Creative Suite Unleash the Full Power
- eBook: Adobe CS2 All in One Desk Reference For Dummies
- eBook: Adobe Encore DVD 1.5 (Peachpit Press)
- eBook: Adobe Encore DVD Classroom in a Book (Adobe Press)
- eBook: Adobe Golive CS Classroom in a Book (Adobe Press)
- eBook: Adobe Golive CS2 Tips and Tricks. The 250 Best
- eBook: Adobe Illustrator 10.0 Classroom in a Book (Adobe Press)
- eBook: Adobe Illustrator CS Wow!
- eBook: Adobe Illustrator CS2 Classroom in a Book (Adobe Press)
- eBook: Adobe InCopy CS2 Classroom in a Book (Adobe Press)
- eBook: Adobe InDesign CS Classroom in a Book(Adobe Press
- eBook: Adobe InDesign CS2 at Your Fingertips
- eBook: Adobe InDesign CS Classroom in a Book(Adobe Press)
- eBook: Adobe PageMaker 7.0 Classroom in a Book (Adobe Press)
- eBook: Adobe Photoshop CS All in One Desk Reference For Dummies
- eBook: Adobe Photoshop CS Classroom in a Book (Adobe Press)
- eBook: Adobe Photoshop CS Digital Photography Workflow Handbook
- eBook: Adobe Photoshop CS For Photographers (2004)
- eBook: Adobe Photoshop CS2 Classroom in a Book(Adobe Press)
- eBook: Adobe Photoshop CS2 For Dummies
- eBook: Adobe Photoshop CS2 In Pictures
- eBook: Adobe Photoshop CS2 Studio Techniques(Adobe Press)
- eBook: Adobe Photoshop CS2 The Focal Easy Guide
- eBook: Adobe Photoshop Elements 4 In Pictures
- eBook: Adobe Photoshop Elements 4 The Hidden Power
- eBook: Adobe Photoshop Graphics Techniques For Web Design
- eBook: Adobe Premiere Elements 2.0 Classroom in a Book
- eBook: Adobe Premiere Pro 2.0 Classroom in a Book(Adobe Press)
- eBook: Adobe Premiere Pro Classroom in a Book(Adobe Press)
- eBook: Adobe Reader 7 Working Effectively with PDF Files
- eBook: Autodesk 3Ds Max 8 Bible
- eBook: Autodesk AutoCAD 2004 Bible
- eBook: Autodesk AutoCAD 2004. For Dummies
- eBook: Autodesk AutoCAD 2005 Bible
- eBook: Autodesk AutoCAD 2005. For Dummies
- eBook: Autodesk AutoCAD 2006 Bible
- eBook: Building Your Business with Google For Dummies. 2004
- eBook: Creating Professional Animation with 3Ds Max
- eBook: Excel. Timesaving Techniques for Dummies. 2005
- eBook: Firewalls for Dummies (2nd Edition)
- eBook: Hacking For Dummies 2
- eBook: Ham Radio for Dummies April 2004
- eBook: Home Networking For Dummies 3rd Edition
- eBook: HTML & XHTML & CSS Bible. 3rd Edition (2004)
- eBook: Internet Explorer Construction Kit For Dummies. 2004
- eBook: Java Database Programming Bible (2002)
- eBook: JavaScript Bible, 5th Edition
- eBook: Laptops For Dummies Dec 2004
- eBook: Linux For Dummies (6th Edition)
- eBook: Linux For Dummies 6th Edition (2005)
- eBook: Linux Timesaving Techniques for Dummies 2004
- eBook: Macromedia Dreamweaver 8 For Dummies
- eBook: Macromedia Dreamweaver 8 In Pictures
- eBook: Macromedia Dreamweaver 8 Teach Yourself In 24 Hours
- eBook: Macromedia Dreamweaver 8 Unleashed
- eBook: Macromedia Fireworks 8 In Pictures
- eBook: Macromedia Fireworks MX 2004 Web Design Basics
- eBook: Macromedia Flash 8 For Dummies
- eBook: Macromedia Flash 8 Teach Yourself In 24 Hours
- eBook: Macromedia Flash MX Using Flash
- eBook: Macromedia Studio 8 Special Edition
- eBook: Macromedia Studio Mx.2004 Desk Reference For Dummies
- eBook: Microsoft Office Excel 2003 Bible
- eBook: Microsoft Office Project 2003 Bible
- eBook: Office 2003. Timesaving Techniques for Dummies
- eBook: Photoshop Album For Dummies. 2003
- eBook: SUSE Linux 10 Bible (2006)
- eBook: The Internet Gigabook for Dummies
- eBook: Visual Studio.NET C for Dummies. Quick Reference Guide
- eBook: VoIP for Dummies
- eBook: Wiley Digital Video for Dummies (2003)
- eBook: Wiley Publishing For Dummies 2004 Macs for Dummies
- eBook: Windows XP Digital Music For Dummies (2005)
- eBook: Windows XP Digital Music For Dummies Nov 2004
- eBook: Windows Xp For Dummies
- eBook: Windows XP Gigabook For Dummies
- eBook: Windows XP Timesaving Techniques small TM small
- eBook: Wireless Networks For Dummies. 2004
- Macromedia Authorware 6.5
- Macromedia Captivate v1.0
- Macromedia Dreamweaver 8
- Macromedia Fireworks 8
- Macromedia Flash Professional 8
- Macromedia FlashPaper v2.0
- Macromedia Fontographer 4
- Macromedia JRun 4
- Macromedia Studio 8
|