1
vote
1answer
28 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
65 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
13 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
60 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
33 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
32 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
85 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
36 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
573 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
37 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
32 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
138 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
501 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
69 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
27 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
670 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
169 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
229 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 ...
2
votes
1answer
898 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
161 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
2k 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
894 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
674 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
634 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
2k 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
3k 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
283 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
245 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 ...
0
votes
2answers
458 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
9k 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 ...
13
votes
4answers
8k 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
1k 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
5k 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 ...
52
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
1k 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
758 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
4k 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 ...
2
votes
4answers
2k views

Why doesn't DIR show C:\Users\Yours Truly\AppData?

[Pardon the Windows-noob question!] It often happens that the paths I can read off the Windows Explorer GUI do not correspond to anything I can see with DIR (in the CMD command line). For example, ...
1
vote
3answers
2k 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
469 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
322 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 ...
6
votes
1answer
425 views

Linux: which is “most appropriate” directory to place an exectuable for all users?

A bit of newb question.. I usually install packages and don't worry about these things. But, now I have a one file executable CLI program (Kindlegen from Amazon). I want it to be in the path of all ...
4
votes
1answer
1k 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
282 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
83 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 ...
1
vote
2answers
249 views

how to set PATH variable correctly

I have some problems with setting my user variable PATH, my PATH contains the following line: %PATH%;"C:\Program Files\K-Lite Codec Pack\Media Player Classic";C:\Program Files\SSH Communications ...
2
votes
2answers
184 views

Windows cmd dosn't find exe even if it's in the path

I just installed strawberry perl. It's bin directory shows in the path but windows refuses to run it unless I give the full path (I even tried to reboot to make sure all environment variables was ...
4
votes
2answers
4k views

How do I hide the path in command line prompt on Windows?

I'm working on Windows 7 using the cmd console. How do I hide the path in the prompt?