Top "Path" questions

The general form of a file or directory name that specifies a unique location in a file system.

Setting PATH environment variable in OSX permanently

I have read several answers on how to set environmental variables on OSX as permanently. First, I tried this, How …

macos bash unix path environment-variables
Batch Extract path and filename from a variable

How can I extract path and filename from a variable? Setlocal EnableDelayedExpansion set file=C:\Users\l72rugschiri\Desktop\fs.…

batch-file path
How to construct a relative path in Java from two absolute paths (or URLs)?

Given two absolute paths, e.g. /var/data/stuff/xyz.dat /var/data How can one create a relative path …

java url file path
Python list directory, subdirectory, and files

I'm trying to make a script to list all directory, subdirectory, and files in a given directory. I tried this: …

python file path
Convert file path to a file URI?

Does the .NET Framework have any methods for converting a path (e.g. "C:\whatever.txt") into a file URI (…

c# .net path uri
Regex Last occurrence?

I'm trying to catch the last part after the last backslash I need the \Web_ERP_Assistant (with the \) My …

regex path
How to combine paths in Java?

Is there a Java equivalent for System.IO.Path.Combine() in C#/.NET? Or any code to accomplish this? This …

java path
How do I include a path to libraries in g++

I am trying to include the path to extra libraries in my makefile, but I can't figure out how to …

path g++
Set windows environment variables with a batch file

I was looking for a way to set the environment path variable with a .cmd file. When the path variable …

windows batch-file path cmd environment
How to retrieve absolute path given relative

Is there a command to retrieve the absolute path given the relative path? For example I want $line to contain …

bash shell path absolute