Questions tagged [path]

Path in computer file systems is in general the human-readable address of a filename or directory specifying a unique location in a file system, and expressed by a string of path components separated by a delimiter (most commonly the slash "/" or the backslash "\"). PATH (variable), is an environment variable specifying a list of directories where executable programs are located.

Filter by
Sorted by
Tagged with
-1 votes
2 answers
287 views

What are these Windows filename transformations?

i use Windows 7 x64. If i right-click on folder called C:\Longer than (3) and click "Send to" and send it to an .ahk file that simply shows the arguments it received, it shows C:\LONGER~3. ...
Avtem's user avatar
  • 1
0 votes
1 answer
94 views

How to move dashed stroke along path in PS 2022

I have a dashed line and want another dashed line to align with the gaps and dashes: Even when setting the dash length and gap size perfectly they don't align. Is there a way to move the dashed line ...
Chris's user avatar
  • 1
2 votes
1 answer
1k views

Copy Java installation to another system

I'd like to create a detached/offline Java setup on Windows to roll out to other systems and VMs. I know that some applications bundle Java within them, but I was wondering if I can also create a Java ...
YorSubs's user avatar
  • 823
1 vote
0 answers
180 views

node.js app symlink relative path resolution

I have a node.js application that lays under /opt/myapp. There is a folder called "plugins" (/opt/myapp/plugins). In the plugins folder (oh wonder) are stored plugins that are loaded on ...
Marc's user avatar
  • 321
0 votes
3 answers
805 views

How to run apps from Windows' command line like in Linux

Context: I use Fedora GNU/Linux as my main OS, but sometimes I need to work within Windows. Over the years, using Linux distros, I have become used to working mainly through the command line, calling ...
Noumeno's user avatar
  • 106
1 vote
1 answer
2k views

Add a path to the Windows system Path via .bat

I would like to create a script to add a path to the Windows System Path variable. I searched a lot and found some possible solutions, but I'm afraid of making a mistake since I've heard reports that ...
Tyrone Hirt's user avatar
1 vote
1 answer
1k views

How do I make a shortcut (.lnk) to run a .exe file in the same folder so that it works when I switch computers (all file paths are different)

I have a folder on my PC. Within that folder, there is a shortcut (.lnk) and an executable file (.exe). When I click on the shortcut, the .exe file should run. I have managed to achieve this no ...
Matthias's user avatar
0 votes
1 answer
134 views

Is it possible to retrieve a shortcut location and use it as a variable in the target of itself?

I created a VBS script (C:\Script\ReadFolder.vbs) that accept a folder path as parameter. I would like to create a shortcut to run this script in different folders. First, I created a shortcut in &...
UnTroll's user avatar
  • 11
2 votes
0 answers
55 views

Why does $PATH come in two different formats in mintty on Windows?

I'm trying to use node to do a small inline string manipulation of the current PATH in a bash script (in mintty.exe on a GitHub Windows Action Runner), but it's not working as expected. I've recreated ...
Cameron Tacklind's user avatar
1 vote
1 answer
4k views

Trying to open a OneDrive directory file path using a batch file

I am attempting to open a OneDrive file path whose location is synced locally to my computer using a batch file, but after several trial and errors, I'm not able to determine what I'm doing wrong. So ...
Ryan's user avatar
  • 13
0 votes
0 answers
38 views

Move Complete Path in Windows

Using Windows 10 and File Explorer. Is there a way to do this that's optimal? I want to move files from one folder to another, but I also want to recreate the folder architecture from the source that ...
boobounder's user avatar
0 votes
1 answer
667 views

Most effective way to add custom script to /bin? & best practices

Most effective way to add custom script to /bin? I know that I can do: symbolic-link(but I don't understand how to undo this or clean it up, even after researching) alias xxx="/path/to/script&...
Simm Simmons's user avatar
0 votes
1 answer
2k views

Issues when Windows 10 Account Username Includes Space

In most versions of Windows I have used, and currently using Windows 10, having a space within the account username poses problems, particularly with paths and when the input doesn't accept a path ...
ARGYROU MINAS's user avatar
0 votes
1 answer
687 views

Create shortcut from a link to a specific paragraph in OneNote document: the URL seems too long for a shortcut

I am using the OneNote version with Office 365 for Windows. OneNote has long allowed users to generate links to specific paragraphs. When these links appear in other OneNote documents or in Word ...
user697473's user avatar
1 vote
1 answer
72 views

File Explorer "forgetting" contents of PATH variable after several hours

I ran into problems hitting the maximum length of the Windows PATH variable. I read an article that suggested extending it by creating another environment variable, say PATH1, adding additional ...
Simon Elms's user avatar
  • 1,005
1 vote
1 answer
160 views

Powershell $env:path changing depending on how it is opened (PowerToys Run)?

I recently started using PowerToys Run and I've noticed that I can no longer use some commands when launching Powershell (7.2.6) via PTR vs just running it out of the start menu. Turns out, my $env:...
Aaron Schultheis's user avatar
3 votes
2 answers
2k views

What is the path to the `dir` program on Windows from `cmd.exe`?

This question is interesting because normally I would use where.exe on Windows to find the path to a program on my path. However, where has an option dir, /r to recursively search a path. I don't know ...
calebTree8475's user avatar
0 votes
0 answers
172 views

Why are some paths followed by a ",0" (a comma and a zero) on Windows?

Sometimes in Windows I come across some paths, between some quotes or not, that are followed by a ,0 (basically a comma and a number). It's not necessary 0 it could be 1, 3, 5 or any other number but ...
Nicryc's user avatar
  • 707
0 votes
1 answer
1k views

Alpine Linux edit PATH before OpenRC runs service

I am having OpenRC start a service that calls a java jar, but the PATH it uses appears to either be different than the global PATH, or the service is ran before the PATH can be edited. I have tried ...
Koops128's user avatar
  • 101
1 vote
1 answer
1k views

Force python to be globally linked to /usr/bin/python3 on macOS (non-alias)

Calling python from any terminal or when an other process tries to spawn it, causes "Install Command Line Tools" popup. After installation it still does the same. Linking /usr/bin/python3 ...
pfoof's user avatar
  • 21
1 vote
1 answer
265 views

PYTHONPATH defined on multiple vs single line in fish shell

I noticed that set -xg PYTHONPATH "/path/to/dir1" set -xg PYTHONPATH $PYTHONPATH "/path/to/dir2" works, whereas set -xg PYTHONPATH "/path/to/dir1 /path/to/dir2" does ...
Labrador's user avatar
  • 143
0 votes
0 answers
72 views

Path Not Found Error appears Randomly in Windows Terminal

Recently a windows terminal window opens with a "System cannot find the path specified [process exited code 1]. This is not associated with running an application but rather appears periodically. ...
smuzoen's user avatar
  • 101
1 vote
1 answer
781 views

How to determine if a file with a trailing space exists?

I need a script to iterate over directories, find if a file with a trailing space exists, log that it exists if it does, then rename the file. I am stuck on the most important part: finding if a ...
sgfit's user avatar
  • 79
3 votes
2 answers
1k views

Windows: How to make cygwin bash.exe to take precedence over wsl in command line?

I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for ...
Adam's user avatar
  • 141
2 votes
1 answer
401 views

What is this pip config output?

I have to install and configure Python 3.8.10 on a Windows 7 machine and I'm getting this output for pip config -v list: C:\Users\Username>pip config -v list For variant 'global', will try loading '...
srhslvmn's user avatar
  • 249
0 votes
1 answer
413 views

pip won't listen to PYTHONUSERBASE

For Python 3.8.10 under Windows 7, I changed PYTHONUSERBASE from C:\Users\Username\AppData\Roaming\Python to C:\Users\Username\AppData\Local\Python by adding a PYTHONUSERBASE environment variable and ...
srhslvmn's user avatar
  • 249
0 votes
2 answers
126 views

How to find folder paths that have existed in the past on a PC's hard drive

I have a folder named fubar on a PC, having the path D:\Foo\fubar. The folder fubar was previously named differently and was stored in a different path named D:\Baz\Qux\ I need to find out what the ...
David.P's user avatar
  • 522
0 votes
2 answers
688 views

Where is studio64.exe located in Windows 10?

I removed the only shortcut to Android Studio from the Start Menu as Windows suggested me to, saying it's no longer usable. Now, I can't find how to launch Android Studio. I tried searching numerous ...
The Amateur Coder's user avatar
0 votes
1 answer
95 views

How do I modify the PATH at bootup in a way that affects everyone?

I installed a JDK in /opt, and placed a shell script in /etc/profile.d/ where I used export to modify the PATH variable so I could run Java nicely. Thing is, this only worked for my local account, not ...
HydroPage's user avatar
0 votes
1 answer
1k views

zsh: command not found: brew while it exists

I remember that I used brew some time ago. But now when I try to run it I get ➜ ~ brew zsh: command not found: brew but there is an alias /usr/local/bin/brew which I can run. Also it's ...
Kosh's user avatar
  • 228
0 votes
0 answers
38 views

some extra directories in macOS PATH variable

I can't figure out where some extra directories come from in my PATH variable As a shell I am using oh-my-zsh. In the .zshrc there are the following lines: export PATH="$PATH:$HOME/Documents/...
Kosh's user avatar
  • 228
1 vote
0 answers
969 views

How to download and install MATLAB in Ubuntu with no GUI?

I am working inside a docker container, and the only interface I have is the terminal. I used pip install matlab and it does install the version 0.1, but when I write matlab --version, the message is ...
Alessandro's user avatar
1 vote
1 answer
86 views

How do package installers make packages available anywhere without adding them to the Environment Variables' path?

Example1: When I install a package using a package manager such as the JavaScript package manager npm, the package immediately becomes available to run from any directory on any terminal: $ npm ...
Shayan's user avatar
  • 1,524
1 vote
1 answer
3k views

How can I get the actual absolute path of an executable that was found via %PATH% in Windows (PowerShell)?

When I open a PowerShell window and type an executable file name in order to run it, I expect the actual executable to be found among the folders specified in %PATH% ($Env:Path in pwsh) environment ...
Burst's user avatar
  • 111
2 votes
1 answer
160 views

Windows 10 explorer.exe opens Unix-like file paths in browser, resolves to odd domains

I forgot I was on a Windows (10) machine and accidentally typed "/tmp" into the path textbox at the top of the file explorer. Interestingly, it opened Firefox (99) and navigated to https://...
Derek's user avatar
  • 23
3 votes
1 answer
459 views

Set PATH in .bashrc depending on shell

I have a user switcher that has different use-cases. It's PATH should depend on whether the current shell is restricted or not. Thus I've added to the end of /home/switcher/.bashrc: [[ $- == *r* ]] &...
morrow's user avatar
  • 45
1 vote
1 answer
77 views

Debian Linux PATH variable repeats path

I have Debian Gnu/Linux 11.3.0 64 bit. In /etc/profile file I have defined my PATH variable as such: PATH="/usr/local/bin:/usr/bin:/bin:$HOME/.local/bin" When I, echo $PATH it yields, /...
njc's user avatar
  • 174
2 votes
1 answer
8k views

Setting user PATH environment variable on Windows 10 has no effect

I have a bizarre problem with setting my user PATH variable. C:\Program Files\ghcup\bin is the path to my executable that I want to add to my user PATH. I have tried setx /M path "%PATH%;C:\...
tangjm's user avatar
  • 23
0 votes
1 answer
22 views

What does path designator .: stand for?

In my apache2 error log I'm seeing (include_path='.:/usr/share/php'). I've never seen that as part of a path designator before. I've researched path designators and found no answers. What does the .: ...
Larry666's user avatar
0 votes
1 answer
701 views

Relative path when opening a file in Chrome via PowerShell

I'm on Windows 10, and I'm trying to open a file with Chrome, however, PS always ends up sending it the relative path. I'm running commands inside a directory called phy, and here is it's structure (...
eccentricOrange's user avatar
2 votes
1 answer
198 views

Create Windows directory on PATH filled with pointers to executables?

I'd like to create a personal bin directory on my Windows installation for storing pointers to command-line utilities that I use frequently, like /usr/local/bin is for on Linux. I'd like this folder ...
p-lucero's user avatar
  • 343
0 votes
1 answer
390 views

I am unable to start webstorm from the fedora command line, after following the instructions on the website

On start up, the JetBrains Toolbox opens up fine The 'Generate shell scripts' is active and the shell scripts location is as JetBrains instructions states ('/usr/local/bin') and the Shell script name ...
Kamal Sharma's user avatar
2 votes
2 answers
4k views

Batch script that should set a path variable breaks the string

Im trying to set a user-path variable via setx in a win-batch-script, but it keeps breaking. The path that I enter... setx path "%path%;%ProgramFiles%\Pseudocode\" ...leads to this: Sadly, ...
xtay2's user avatar
  • 123
0 votes
1 answer
1k views

USERNAME folder missing, after accidentally moving Downloads folder to Users in C: drive

This and this is the actual problem, with the %UserProfile% folder renamed to Download and I cannot change it: I'm also not able to access the %UserProfile%\Download folder from This PC:
BirBahadur's user avatar
0 votes
0 answers
66 views

move softwares without changing path

I bought a new laptop with only 512gb of storage so i installed all my softwares on an external 4tb hard drive. but as you might imagine, it's not very practical because i always need to cary my PC ...
rémi couturier's user avatar
1 vote
1 answer
161 views

DTerm (macOS one-stroke quick terminal) > Issues with $PATH in ZSH

I’ve been using DTerm for a long time as a fast and convenient way to get to a “path aware” terminal prompt in macOS - but since upgrading to BigSur/ZSH, the $PATH in DTerm and Terminal.app/iTerm ...
JJarava's user avatar
  • 433
0 votes
1 answer
1k views

Windows Terminal is not displaying PATH variable

My windows terminal is not recognizing the PATH variables... I was having trouble when adding new values to the path variable and it not working properly when I tried to run the applications I added, ...
Pedro Fontes's user avatar
1 vote
0 answers
491 views

Is this the right way to iterate over components of $PATH?

For various reasons, I want to use an environment variable to pass multiple file paths to my script. I hit upon the idea of structuring the variable like PATH is, with colons to separate the entries. ...
Karl Knechtel's user avatar
0 votes
1 answer
2k views

Windows 10 will not let me do anything to the system Path environment variable. Can't add, edit, or delete

When I try to do anything to the Path environment variable for system such as edit, add, or remove and entries I get "This environment variable is too large. This dialog allows setting values up ...
Ant's user avatar
  • 101
0 votes
0 answers
205 views

Malformed windows path environment variable

I haven't been able to find any information about this but my path environment variable has multiple entries that seem to be malformed. Any idea what would have caused this? F:\dev\emsdk; F:\dev\emsdk\...
Vwert's user avatar
  • 1

1
2
3 4 5
25