Re: DOS in XP
From: Shenan Stanley (news_helper_at_hushmail.com)
Date: 06/11/04
- Next message: anonymous_at_discussions.microsoft.com: "Microsoft XP Professional"
- Previous message: Martin Racette: "Printing Problem"
- In reply to: LLL: "DOS in XP"
- Next in thread: Darrell Gorter[MSFT]: "RE: DOS in XP"
- Messages sorted by: [ date ] [ thread ]
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.
- Next message: anonymous_at_discussions.microsoft.com: "Microsoft XP Professional"
- Previous message: Martin Racette: "Printing Problem"
- In reply to: LLL: "DOS in XP"
- Next in thread: Darrell Gorter[MSFT]: "RE: DOS in XP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|