Solved

DOS commands

Posted on 1998-08-11
6
262 Views
Last Modified: 2010-04-12
I want to cd to a directory in dos that has a space in its name (ie. Program Files).  It will not let me do this and says 'Too many parameters - Files'.  Is there a way I can do this or a program that I can get to allow these names.  

Also, I would like dos to recognize commands such as 'help', 'ls', etc.  I have worked with pcs that do this.  Any suggestions.
0
Comment
Question by:bark10
6 Comments
 
LVL 9

Accepted Solution

by:
cymbolic earned 70 total points
ID: 1020556
You need to use the 8.3 naming standard to do your change directory.  Generally, this resloves down to cd progra~1 or cd "Program Files".  Any extensions to the basic DOS command line functions have either been provided by replaceable DOS command line programs (Like 4DOS), or by individual programs that execute off of your Path directory settings.  Under Win32 Operating systems, substituting the command processor is not advised in a monolithic monoply software situation.
0
 
LVL 3

Author Comment

by:bark10
ID: 1020557
Thanks, cymbolic.  You can have the points if you answer me one question.  What is a "monolithic monoply software situation"?  
0
 
LVL 2

Expert Comment

by:datn
ID: 1020558
Microsoft would be your answer. Everything with computers nowadays is integrated into Microsoft's windows operating systems.
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Expert Comment

by:staticsnow
ID: 1020559
to use commands such as ls:

1.) go to the command prompt and type edit ls.bat
2.) type the following lines
@echo off
dir
3.) Save the file to a directory in your path (c:\windows would be good)

most commands have a dos equvilant.  just use the above system to create commands
cp=copy
ls=dir
rm=del  etc
0
 

Expert Comment

by:Lai
ID: 1020560
in good old dos (not under windows 95)
a space is shown when tere a "." is in the directory name
for example md test.dir  will make the directoryname "test dir"
a space can allso be made if you hold the Alt button and type in 255 (for ascii code)
this will also work with other codes (so you can use nearly all ascii codes for naming your subdirectorys)
0
 
LVL 2

Expert Comment

by:benten
ID: 1020561
Some versions of COMMAND.COM contain a DIR command that support the /X option (I know NT does).  This will give one bothe the long name and the short 8.3 name of a file or directory.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now