Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path recursively

Tags:

path

windows

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?

like image 447
Rumel Avatar asked Apr 07 '11 17:04

Rumel


People also ask

What is a recursive PATH?

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.

Does PATH search recursively?

Not directly, no. Entries in $PATH are not recursive.

What is the use of recursive PATH?

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.

Does PATH include subfolders?

The PATH variable would only contain the folder, not its subdirectories (desired result). 3. Invoking program.


1 Answers

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

like image 158
Patrick Georgi Avatar answered Oct 05 '22 22:10

Patrick Georgi