Go Back   Computer Forums > General Computing > Hardware
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-12-2007, 09:30 PM   #1
Baseband Member
 
Join Date: Apr 2007
Posts: 65
Smile Command promt question

Can some one please give me a detailed answer on this question ?

In command mode, if you enter the command PATH <ENTER> you will get an output similar to the one shown below.

PATH = C:\WINDOWS\system32;C:\WINDOWS

Research how you would append another entry to the current DOS path variable. Ie I wish to append the directory C:\PATHTEST to the existing path listings, while still maintaining the existing entries. What command must I enter to achieve this?

Note: It is quite safe to enter PATH or PATH /? , however do not enter any other path related commands on your computer.

TYPE the command you would use in the box below,

To append C:\pathtest to my existing DOS path I would enter the command:
__________________

fredstek is offline   Reply With Quote
Old 04-13-2007, 07:41 AM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Command promt question

how detailed do you want?

I assume you know that path refers to a list of directories where the command prompt will look for programs to run? like in dos when you type copy, that's not really a dos command, that's actually a program that sits in your system32 folder.

well to add new paths to the global variable path you use the following command

path = (to change the path
%path% (to add the existing path that's already there)
; (to separate the directories)
c:\dos (and example of a path that you might add)

put it all together.

path = %path%;C:\dos

so in your case you might see this
Quote:
c:\>Path

c:\>PATH = C:\WINDOWS\system32;C:\WINDOWS

c:\>path = %path%;c:\dos

c:\>path

c:\>PATH = C:\WINDOWS\system32;C:\WINDOWS;c:\dos
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 04-13-2007, 08:42 AM   #3
Fully Optimized
 
UK31337's Avatar
 
Join Date: Feb 2005
Posts: 2,776
Default Re: Command promt question

If you go into the System bit on Control Panel, click around until you find a button marked "Environment Variables", that's just a GUI-driven way of doing what root said.

Instead of having to run the command in Command Prompt, you could do it that way. Makes no difference, mind you.
UK31337 is offline   Reply With Quote
Old 04-13-2007, 09:57 AM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,006
Default Re: Command promt question

doing it at the command prompt doesn't save it, the system variable GUI way does.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:54 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0