Re: DOS in XP

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Shenan Stanley (news_helper_at_hushmail.com)
Date: 06/11/04


Date: Fri, 11 Jun 2004 13:13:57 -0500

LLL wrote:
> I need to change directories in DOS on my WINXP machine. I
> need to be in the directory,
> C:\jakarta-tomcat-4.1.29\webapps, so I can run the jar
> utility in Java that enables me to set-up a WAR file. Why
> can't I change up to any file that starts with J? I can
> change up to my temp file, or Windows file, or Inetpup
> file, but no file that starts with J. If the file starts
> with J, I get Invalid directory.

I think you are typing something incorrectly.

If I am at a DOS prompt (command prompt actually) in Windows XP (Home or
Professional) and have the directories you mentioned.. here are the
scenarios I found:

If I am at C:\>, I can type:

cd "jakarta-tomcat-4.1.29"
cd "webapps"

or

cd "\jakarta-tomcat-4.1.29\webapps"

or

chdir "jakarta-tomcat-4.1.29"
chdir "webapps"

or

chdir "\jakarta-tomcat-4.1.29\webapps"

>From anywhere on the C:\ drive (meaning C:\temp> or C:\windows\system32> and
basically any subdirectory on the C drive, but with the root being C at the
command prompt) I could typoe either of these:

cd "\jakarta-tomcat-4.1.29\webapps"

or

chdir "\jakarta-tomcat-4.1.29\webapps"

If I was writng a batch/cmd script to do it, I would want to be sure I was
starting at the root or at least on the C:\ drive. I would write a script
like this:

@ECHO OFF
C:
CD "\jakarta-tomcat-4.1.29\webapps"
SOME COMMAND INSIDE THAT DIRECTORY (since it is my working directory now.)

Notice I use the quotes. They "shouldn't be" needed, but it doesn't hurt.

-- 
<- Shenan ->
-- 
The information is provided "as is", with no guarantees of
completeness, accuracy or timeliness, and without warranties of any
kind, express or implied.  In other words, read up before you take any
advice - you are the one ultimately responsible for your actions.


Relevant Pages

  • Re: dos batch file
    ... I am trying to create a very simple batch file that looks in the root of ... DOS is an operating system. ... WinXP, only a Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Need Basic Instruction on Command Line Typing
    ... display to a dos box, or back again, by pressing alt-enter. ... command prompt makes it unusable. ... Have you tried cntl-alt-del, Task manager, and looked at the ... did anythihg to schedule it4, or a backup, or something's doing a ...
    (microsoft.public.windowsxp.general)
  • Re: looking for answers about detecting and deleting rootkits on windows XP OS, and getting really a
    ... out on the internet. ... I am not saying that I am not computer illiterate, ... use DOS and you needed to know dos commands to exicute programs or ... how to list a folder of file in dos, which is now called command prompt ...
    (microsoft.public.security.virus)
  • Re: Width of Command Prompt (DOS) EDIT Window ??
    ... have in a DOS application, but rather how one can change the physical ... I fully understand that the dimensions of the Edit window in cm/inch ... If you set up the command prompt to run in a window, ... You would type in the MODE command at the command prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Need Basic Instruction on Command Line Typing
    ... display to a dos box, or back again, by pressing alt-enter. ... command prompt makes it unusable. ... negate the sluggishness of the command prompt, ... I'm talking about having Windows XP Home SP-2 running and typing ...
    (microsoft.public.windowsxp.general)