Computing.Net > Forums > Disk Operating System > path command entire drive

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

path command entire drive

Reply to Message Icon

Name: iamanogre
Date: October 10, 2006 at 08:37:16 Pacific
OS: DOS 6.22
CPU/Ram: p 266
Comment:

Is there a way to enter path command to have the whole drive searched? ((not just specific folders e.g PATH C:\;C:\DOS;C:\CLIENT32 .....))



Sponsored Link
Ads by Google

Response Number 1
Name: dosser
Date: October 10, 2006 at 09:10:46 Pacific

Response Number 2
Name: Petit Jean
Date: October 10, 2006 at 09:59:42 Pacific
Reply:

The PATH command is not a search tool as such but a way to make files with EXE,COM and BAT extensions available from the current directory.After you define a PATH statement in config.sys or autoexec.bat you need to reboot once to make the dos commands readily available from the command prompt.Other files or data files paths are defined with the APPEND command(similar to the PATH command).There is no universal PATH statement that would eliminate the need to define it in config.sys(SET PATH) or autoexec.bat(PATH).Good luck.


0

Response Number 3
Name: Mechanix2Go
Date: October 10, 2006 at 10:45:01 Pacific
Reply:

Not at all clear where we're going.

If you want to search the PATH you can:

for %P in (%PATH%) do dir %P\*.com

[To find COM files]

To SEARCH an entire drive:

attrib /s c:\*.*


=====================================
If at first you don't succeed, you're about average.

M2



0

Response Number 4
Name: iamanogre
Date: October 10, 2006 at 11:50:43 Pacific
Reply:

Thanks for the replies. I will set the path manually.

set PATH=%PATH%;C:\FolderName

Thank you all


0

Response Number 5
Name: Mike Newcomb
Date: October 11, 2006 at 19:17:57 Pacific
Reply:

Please explain exactly what/why you are trying to do.

My understanding of the path command is that it provides the dos o/s with a number of directories (in order) which it searches in that order, to load one of the file types, as described by Petit Jean.

One tends to use this for the most used applications.
e.g dos, wp, etc.

For other appications, one can use a small batch file to avoid using commands such as (e.g.):-
CD\
CD application directory
application

Good Luck - Keep us posted.


0

Related Posts

See More



Response Number 6
Name: iamanogre
Date: October 12, 2006 at 04:16:20 Pacific
Reply:

What I was trying to be was lazy. I have over 100 unique machines that have specific folders that need to be in the path and instead of doing some login script changes I was trying to find out if there was a different way to go.

Thank for the help


0

Response Number 7
Name: dosser
Date: October 13, 2006 at 08:15:43 Pacific
Reply:

This has bugger-all to do with DOS 6.22 he is circumnavigating the posting rules....


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: path command entire drive

Using COMMAND to send path command www.computing.net/answers/dos/using-command-to-send-path-command/427.html

path command www.computing.net/answers/dos/path-command/10234.html

Need help saving hard drive info using dos commands www.computing.net/answers/dos/need-help-saving-hard-drive-info-using-dos-commands/4898.html