I tried searching this on Google and didn't really learn anything as the search results usually pertain to other recursive subjects. What I would like to know is if a folder is in Path is it defined recursively (on Windows)?
I want to create a C:\StandalonePrograms
and add that to path. It will contain a bunch of programming languages and other programs that usually come from zip files. I want to know that if by adding the program directory to it I can call all of the programs.
For example if I have C:\StandalonePrograms\SomeProgram
can I open up a command prompt type someCommand
and expect it to run from the C:\StandalonePrograms\SomeProgram\bin
folder?
Or do I need to explicitly define C:\StandalonePrograms\SomeProgram\bin
in my Path?
If I can't are there any workarounds to achieve the situation I want?
Alternatively referred to as recursive, recurse is a term used to describe the procedure capable of being repeated. For example, when listing files in a Windows command prompt, you can use the dir /s command to recursively list all files in the current directory and any subdirectories.
Not directly, no. Entries in $PATH are not recursive.
A recursive path is a path that uses nested routes to display nested views by calling on the same component. An example of a recursive path in action could be the common use of breadcrumb on websites.
The PATH variable would only contain the folder, not its subdirectories (desired result). 3. Invoking program.
You need to specify each directory individually, the PATH mechanism doesn't walk through subdirectories.
A workaround could be a directory full of batch files (of some sort) that start the real tools with full path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With