0
votes
1answer
24 views

Command Line Tool for Adding To Your Windows PATH, Permanently? [duplicate]

Is there a way to permanently modify your PATH from the command line? I find myself often trying to run a command or two on the DOS prompt, and find out it's not on my path. I manually find the ...
0
votes
0answers
165 views

Why is “setx” not setting my path properly?

So I use this command: setx path "C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x 86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jdk1.6.0_45\bin;C:\Win ...
0
votes
1answer
14 views

Windows 7 path not being set

I've read an followed all stack overflow, super user, etc. instructions multiple times, and my GUI window shows the path to be what I want, i.e., python27. However the cmd prompt shows several lines ...
1
vote
0answers
39 views

php is not recognized as an internal or external command although it is available in commandline

this is somewhat of a tricky question when it comes to "where should I place it?", but I assume a general problem behind it, which is why I am putting it on superUser. I have a Doctrine script which ...
10
votes
1answer
287 views

What does “C:2\” in a windows path string mean?

I got this pop-up from the Windows firewall. What is "C:2\" in the path? The real path is D:\Steam\SteamApps\common\... I tried cd /d C:2\ in cmd and got "The system cannot find the path ...
1
vote
1answer
59 views

Modifying the System Path variable from cmd

I am trying to modify my system Path value. I need this as I am doing an upgrade of the S/W and the users need to have access to the old and new system. I provide them with a toggle button which will ...
1
vote
1answer
284 views

Environment variables and commands lost after Windows 8.1 upgrade

No sooner did I upgrade to windows 8.1 from windows 8, I found that I was unable to run commands from commandline like python, pip, cat,ls etc which are installed in the system when windows 8 existed. ...
1
vote
1answer
16 views

env command shows 3 times same path

When i run env it shows 3 times /usr/bin under PATH . Same for every path under PATH title. For example - my scala bin directory shows 3 times . However, in my .bash_profile, it is written just one ...
0
votes
1answer
127 views

Batch script Issue passing path as paramter with spaces [duplicate]

go.bat @echo off set url=D:\Download\Path with space inside echo "%url%" pause output: C:\Users\Admin\Desktop>go "D:\Download\Path with space inside" Premere un tasto per continuare . . . ...
2
votes
1answer
49 views

How to hide a program from linux's tab-completion

I have an account on a shared machine, and cannot access /usr/bin, where there are many programs which I never use. I'd like tabbing to ignore many of these programs, for example I'd like ...
0
votes
0answers
53 views

Windows compact /s /u command runs forever on deep directories greater than MAX_PATH

I ran the command compact /U /S /I /Q > status.txt on a large deep directory and after it ran for over 24 hours I decided to investigate whether it was hanging. It turned out that meanwhile the ...
0
votes
1answer
603 views

aireplay-ng command not found

I just downloaded and installed Kali Linux on my MacBook Pro (dual boot) to mess around with penetration testing - I have experience with aircrack-ng, but it was a while ago (and I was at least ...
0
votes
1answer
60 views

Java command only working in command line not in sh files

I have recently attempted to install java on ubuntu server 12.04 LTS. I wgetted the tar.gz file and extracted it to /opt/java and then added /opt/java/bin to the path variable. This all works ...
1
vote
2answers
947 views

Strange PATH issue in Windows 7 - goes null after being set

I have some sort of a problem with the PATH system variable. Since I use a lot of cmd apps and scripts I've added a lot to it. But the string's length is not the issue. I've worked around this ...
0
votes
0answers
43 views

How to start an application in a given directory, using other as its working dir?

For a system we are deploying for our customer we need to run the setup executable from %temp% and have it use for the installation, files in another directory. This cannot be solved at the ...
0
votes
2answers
42 views

Command Line Script Issue

I've been working on a batchfile script for a few weeks now that should automate certain routine tasks I need to perform during my work. However, I've stumbled upon a problem which I haven't been able ...
0
votes
1answer
216 views

VBS script won't launch without extension even though it's in PATHEXT

I have some VBS scripts in a folder: C:\Program Files\lin2nt\ explore.vbs edit.vbs copyto.vbs The folder C:\Program Files\lin2nt\ is in my Path variable. My PATHEXT is set as follows: ...
1
vote
0answers
781 views

In-path executables not found when called from “Open command window here” console

I uses several CLI tools such as curl, ipcalc, perl, php, wget, etc. When opening a command prompt either via the Start menu or "Run..." > cmd I can invoke theses tools just by giving their name: ...
1
vote
1answer
105 views

Need help $PATH and terminal commands relink - no sudo, ps, grep

I had to change some path settings to install node.js in turn I must have edited a file that removed the path from the correct directory, whereby sudo, ps, grep etc. live. I am not sure how to reset ...
1
vote
1answer
29 views

How do I list commands shadowed by other commands in PATH?

How do I list all the commands in my path which are shadowed by other commands? E.g., if I have /bin/foo, /bin/bar, /usr/local/bar and /usr/bin/foo, I want to see something like foo in /bin shadows ...
0
votes
2answers
944 views

Command prompt cannot find PATH variable

Sometimes, my command prompt cannot find the PATH variable. I have this occasional problem at work where when I open command-prompt and run commands like ipconfig or subst, I get an error saying ...
0
votes
1answer
192 views

Exit windows batch script gracefully?

My PATH is too full, so I need to put things in batch scripts like "cl.bat": @echo off %comspec% /k ""%ProgramFiles%\MICROS~1.0\Common7\Tools\VsDevCmd.bat"" call cl %* Unfortunately this has a ...
0
votes
3answers
309 views

How to store complete path using 7z on linux

I am looking for a simple way to backup files that have changed in the last 24 hours and creating a daily 7zip file ( I don't need permssion or users just files ). Using the following command I can ...
3
votes
1answer
2k views

Too many folders in the path variable

I've encountered a strange issue - I can't launch Visual Studio, nor run simple commands from command prompt, seemingly due to my PATH variable being too long. Now that I look at it, I see that many ...
2
votes
1answer
188 views

getting “No such file or directory” for a nonexistent command

I uninstalled manually mpi from my machine, but now when I make the command mpirun I get "-bash: /usr/local/bin/mpirun: No such file or directory" rather than "-bash: mpirun: command not found". ps. ...
1
vote
2answers
2k views

How do I create a Python 3.3 environment with Anaconda (& Windows)

I installed Anaconda on my Windows XP machine about a week ago. It came with Python 2.7. I am trying to create a Python 3.3 environment on it. I followed these directions, resulting in downloading ...
0
votes
2answers
4k views

Setting environment variables and appending to system-wide %PATH% with a Windows batch file

I'm trying to set three environment variables and append them to the machine path. Right now my code is like this: setx CATALINA_HOME "C:\Program Files (x86)\Apache Software Foundation\Tomcat 7" /m ...
1
vote
1answer
1k views

Access/modify the User path variable, not System path

I am trying to make an installer for a program and my workplace doesn't allow us 'regular' users to modify the system environment. In an effort to get around the restrictions, I'm trying to add my ...
2
votes
4answers
1k views

python not in command line even though it is in path

When I type 'python' at the command line it says ''python' is not recognized as an internal or external command...' I have Python in both User and System paths. In the past I have been able to run ...
0
votes
1answer
745 views

Changing Windows 7 PATH avriable [duplicate]

I saw this question and answer but this is not working for me. I am following Python tutorials. There is a section that requires me to change the path variable. I used the instructions in the command ...
4
votes
2answers
3k views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
1
vote
1answer
4k views

chkdsk: setting a specific path is not working

I can set the drive (volume), but not directory path or file path. chkdsk (with /h) utility shows that I could set the optional parameter path and filename, but I get the following message instead. ...
0
votes
1answer
301 views

PowerShell in conEmu has different PATH from cmd

Why does PowerShell on conEmu have a different PATH from cmd? I see this when I do openssl version in PowerShell I see that 2007 version and in cmd I see the 2013 version.... This is my startup ...
1
vote
1answer
285 views

Not able to access a Windows 8 binary from the command prompt even when PATH is set properly

I am currently seeing a weird problem in Windows 8 installed on my laptop. I have copied "apache maven" to the C:\Program Files\Apache Software Foundation folder. I have set the JAVA_HOME, M2_HOME ...
1
vote
2answers
691 views

Start program from relative path

In Linux when I have a folder structure like : ~/projects ~/bin I could go to projects and start whatever program is in bin with ../bin/binary_to_launch In Windows when I try the same thing, I ...
3
votes
2answers
15k views

Where is java jre path specified in Windows 7?

I have java installed including jre 6 and 7 on Windows 7 64-bit. When I type java -version at the command line I get: C:\>java -version java version "1.6.0_22" Java(TM) SE Runtime Environment ...
14
votes
4answers
14k views

How to start/open a file/folder that contains space in its name through command-line?

I'm trying to use the start command in the command prompt to open files and folders, but I'm unable to open files and folders that contain space(s) in their name. I have tried the following queries ...
2
votes
3answers
2k views

CMD: Append to path without duplicating it?

For one CMD session I can easily set a new path: SET PATH=%PATH%;"insert custom path here" Doing so in a batch file does not consider whether the custom path is already included. How do I avoid ...
2
votes
1answer
6k views

Modifying the Path environment variable is not working

I have my PATH variable set on my Windows 7 machine, and everything appears normal when I do echo %Path% The paths look fine and are separated by ";" like normal, however, when I try to run any ...
54
votes
1answer
1k views

How is a program that's not in my path being run? [duplicate]

Possible Duplicate: Why am I able to execute a program that is not in my PATH environment variable? I was teaching a coworker about %PATH% and found that if I run "Firefox", it works, but ...
1
vote
1answer
2k views

In a batch, how to specify a path that use a volume name instead of a drive letter?

In a batch, is there a way to specify a path using the volume name instead of a drive letter ? (eg: something like \\RECOVERY\Docs\...) Or, if not possible, is there a way to check if a specific ...
3
votes
2answers
824 views

Windows 7 “open command window here” not getting updated path variable

I have just edited my PATH variable, adding one directory at the end. When I run CMD.EXE from the start menu and typed PATH, I could see my new directory. But when I opened a command window by ...
1
vote
3answers
7k views

Why can't I use %USERPROFILE% in %PATH%?

On my Windows 7 machine, using the System Properties > Environment Variables tool, I try to add %USERPROFILE%\Bin to the system variable PATH. For some reason, that doesn't work, even though ...
1
vote
3answers
3k views

Python in command line runs the wrong version?

I have several versions of Python installed on a Windows 7 computer. I want to run Python 2.7 by default, but for whatever reason, typing python in the command line runs Python version 2.4.5. I've ...
0
votes
1answer
527 views

How do I execute my script by just typing its name?

I have a script in /home/username/scripts and I would like to execute it by just typing its name. I know I could do 'export PATH=$PATH:/home/username/scripts' but I would like to have the same ...
2
votes
3answers
1k views

how to remove path of my command line?

When I start to enter in different folder the path is registered in my command line and I don't know how to remove it. I am almost sure my question wasn't clear. An example is always better. Once in ...
3
votes
1answer
362 views

How to make for /f deal with space in the file path?

The command for /f %%f in (c:\path\list.txt) do echo %%f gets confused if path contains spaces. Typically, I'd just put quotes around the path (in ("c:\path with spaces\list.txt") do), but in this ...
4
votes
1answer
2k views

How to display man page with a specific path?

There are some binaries and corresponding man pages on the IBM AIX system I am working with (/some/path/bin and /some/path/man), but neither bin nor man directory are in my $PATH or $MANPATH . I would ...
2
votes
2answers
302 views

If I open explorer.exe first, then run cmd.exe, the init path for cmd.exe would be same with current path in explorer.exe

I'm using Win XP in my company. I encountered a wonder thing: I open an explorer.exe window. Just enter a directory (for example, C:\Windows). Run cmd.exe (Win+R, then issue cmd.exe) The init path ...
0
votes
0answers
84 views

How do you prevent PATH pollution in Windows when using the command line frequently? [duplicate]

Possible Duplicate: Best practice for Windows PATH/environment variables managing? If you use tools at the windows command line frequently, you know the drill. You install tool X. Unless ...