Re: How do I change path in a command prompt?

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



Hello Allen,
Open a CMD prompt.
From the c: run dir c:\pr* /s
This will give you the 8.3 name this system is seeing.
Then run cd program files
run dir *. /x
This will give you the 8.3 name for the support folder as well.
The 8.3 name is dependant on what other folders with similar names may
already exist when the new one is created.
running dir with the /x shows what the system thinks the 8.3 name is.
Thanks,
Darrell Gorter[MSFT]

This posting is provided "AS IS" with no warranties, and confers no rights
--------------------
<Thread-Topic: How do I change path in a command prompt?
<thread-index: AcbWfK5GAEY0QvbHRJCXbpslF6MLwA==
<X-WBNR-Posting-Host: 195.147.141.73
<From: =?Utf-8?B?QWxhblRlcnJpbGw=?= <AlanTerrill@xxxxxxxxxxxxxxxxxxxxxxxxx>
<References: <F67AF8EB-B4E2-465E-A434-D9469CD3CD4E@xxxxxxxxxxxxx>
<uSFKcUl1GHA.480@xxxxxxxxxxxxxxxxxxxx>
<6B373A11-8D69-43BB-8C63-F4965A17C363@xxxxxxxxxxxxx>
<#PqUrXn1GHA.1288@xxxxxxxxxxxxxxxxxxxx>
<Subject: Re: How do I change path in a command prompt?
<Date: Tue, 12 Sep 2006 08:04:01 -0700
<Lines: 68
<Message-ID: <E36EE2E3-3A3F-4F55-B9AD-E73AEE98827F@xxxxxxxxxxxxx>
<MIME-Version: 1.0
<Content-Type: text/plain;
< charset="Utf-8"
<Content-Transfer-Encoding: 7bit
<X-Newsreader: Microsoft CDO for Windows 2000
<Content-Class: urn:content-classes:message
<Importance: normal
<Priority: normal
<X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
<Newsgroups: microsoft.public.windows.server.general
<Path: TK2MSFTNGXA01.phx.gbl
<Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.windows.server.general:104823
<NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
<X-Tomcat-NG: microsoft.public.windows.server.general
<
<Yes I read this, but it doesn't help at all! What is the way of referring
to
<a path c:\program files\support tools\browstat.exe when in a dos session
that
<only allows 8 character names? I thought you took the first 6 letters and
<added~1 to the end, but this doesn't work. Which was why I asked.
<
<"Pegasus (MVP)" wrote:
<
<> This was the third item on my list. Since you post in the
<> Server group, I assume that you are a system administrator
<> and that you are fully aware that %path% is an
<> environmental variable. Here is what Help says:
<> ======================
<> Setting environment variablesEnvironment variables are strings that
contain
<> information such as drive, path, or file name. They control the behavior
of
<> various programs. For example, the TEMP environment variable specifies
the
<> location in which programs place temporary files.
<>
<> Any user can add, modify, or remove a user environment variable. However,
<> only an administrator can add, modify, or remove a system environment
<> variable.
<>
<> Using System in Control Panel, you can customize the following variables:
<>
<> User environment variables for logged_on_user_name
<> The user environment variables are different for each user of a
particular
<> computer. The variables include any that are set by the user, as well as
any
<> variables defined by programs, such as the path to the location of the
<> program files.
<>
<> System environment variables
<> Administrators can change or add environment variables that apply to the
<> system, and thus to all system users. During installation, Windows Setup
<> configures the default system variables, such as the path to the Windows
<> files.
<>
<>
<> "AlanTerrill" <AlanTerrill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
<> news:6B373A11-8D69-43BB-8C63-F4965A17C363@xxxxxxxxxxxxxxxx
<> > I can't find any reference to it there! I get 50 different subjects for
<> > environment -I've read all those that look likely such as command-line
<> > references and command shell overview but I can't find anyhting
relating
<> to
<> > changing the path.
<> >
<> > "Pegasus (MVP)" wrote:
<> >
<> > >
<> > > "AlanTerrill" <AlanTerrill@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
<> > > news:F67AF8EB-B4E2-465E-A434-D9469CD3CD4E@xxxxxxxxxxxxxxxx
<> > > > I'm trying to run the utility browstat which is in c:\program
<> > > files\support
<> > > > tools. If I open a command prompt and type 'browstat status' it
<> doesn't
<> > > find
<> > > > the program. I assume I need to change the path - I tried
<> > > > cd\progra~1\suppor~1 but it says it cannot find the path specified.
<> What
<> > > is
<> > > > the correct syntax please?
<> > >
<> > > Click Start / Help, then search for "Environment" to see how
<> > > to change such variables.
<> > >
<> > >
<> > >
<>
<>
<>
<

.



Relevant Pages

  • Re: Spybot Error Message
    ... Tx again for prompt & precise reply. ... The PATH under Environment Variables was different ... >> followed MS instructions but didn't resolve error message. ...
    (microsoft.public.windowsxp.general)
  • Re: Environment Variables - System vs. User
    ... User environment variables can be different for each user of a ... You must be an administrator to modify a system environment variable. ... System environment variables are defined by Windows and apply to all ... > of classpath are dramatically different in 'system' than in 'user'. ...
    (microsoft.public.windowsxp.general)
  • Re: MS-Dos in XP
    ... I like to add Interlnk/Intersvr and change the Prompt, ect.. ... applications. ... Properties> Advanced> Environment Variables> System Variables/New ...
    (microsoft.public.windowsxp.general)
  • Re: How to get the value of the prompt environment variable
    ... Scrap the more reliable way section as it is one of the few environment variables that I don't mind changing. ... I think it has to do with the fact the prompt environment variable is hidden according to http://ss64.com/nt/prompt.html. ... Not to mention, of course, the issues of what happens if the user is running an extended shell such as one of the JP Software products with a great number of additional features including being able to string variable functions into the string, etc., ... ...
    (microsoft.public.vb.general.discussion)
  • Re: How to get the value of the prompt environment variable
    ... Scrap the more reliable way section as it is one of the few environment variables that I don't mind changing. ... I think it has to do with the fact the prompt environment variable is hidden according to http://ss64.com/nt/prompt.html. ... SET PROMPT ... Not to mention, of course, the issues of what happens if the user is running an extended shell such as one of the JP Software products with a great number of additional features including being able to string variable functions into the string, etc., ... ...
    (microsoft.public.vb.general.discussion)