Solved

DOS commands

Posted on 1998-08-11
6
266 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

739 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