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
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 .....))
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
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....
Summary: I'm in Win95. My office network uses a buggy logon script I can't get them to change. It replaces the default command path (c:\;c:\windows) with network drives, instead of adding to that path. I wa...
Summary: hello i just installed dos to refresh my memory and i was wondering how to put the path command. i mean i added one more path and the path that existed before, is gone. I guess this is because i just ...
Summary: The first thing to try is running windows setup from the cdrom. I can't remember the command line switch, but there is an switch you can use to "repair" windows. This will attempt to reload missing ...