0
votes
0answers
15 views

'MSIEXEC' is not recognized as an internal or external command

The system programs are not working on my WIN7 64bit system (CMD, PING, MSIEXEC, IPCONFIG, etc). Steps I've taken: %SystemRoot%\System32; is listed in the Environment Variable Path. At command ...
1
vote
1answer
62 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
3answers
144 views

How can I add a program path to the Windows environment variables for easy command line access?

Let's say I want to add the following path to the Windows environment variables: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe Such that I can simply type the following from a command line without using ...
0
votes
1answer
57 views

Environment Variable ORACLE_UNQNAME not defined

I'm trying to install Oracle 11gR2 Entreprise Edition but during database creation, I got this Error : Environment Variable ORACLE_UNQNAME not defined And when I tried to lunch 'emctl.bat' From ...
1
vote
0answers
79 views

Nested environment variable does not expanded

I can't explain the below strange issue. I have two system variables: PYTHONHOME = D:\Tools\ISDC_Tools\Scripting\Python.2.7 PYTHONPATH = %PYTHONHOME%;%PYTHONHOME%\Lib After creating a new cmd ...
0
votes
0answers
24 views

In MacOSX Mavericks, launching an app from the command line versus by double-clicking [duplicate]

In MacOSX Mavericks, what are the differences between launching an app by double-clicking it or through Spotlight, and from the command line? By launching an app such as Emacs from the command ...
0
votes
1answer
16 views

Should I make `emacs` a symlink or environment variable?

When I apt-get install emacs I can just type emacs and it launches. But I decided to replace the apt repository version (23 currently) with the latest stable release (24.3). Now, I'd still like to ...
0
votes
1answer
31 views

Set ENV variable for all commands in current directory in mac os

Is there a way to run all commands in current directory with some ENV variables predefined? Example of what I need: I put some file, say .env in my directory, with: export SECRET='abcd123' Then I ...
2
votes
1answer
1k views

How to compare 2 strings in batch and determine if variable is alphabets

I have this code for /l %%a in (0, 1, 25) do ( if /i !TextAlphabet!==!Alphabet[%%a]! ( set AlphabetNumber=%%a ) ) !Alphabet[]! is an array containing alphabets. I tried echoing !TextAlphabet! and ...
1
vote
2answers
568 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
30 views

Exporting Variables – Reading Them Returns Blank?

Hi – I'm using Mac OS X (Mavericks), which should be UNIX compliant. In my .bash_login, I'm exporting variables for Cocos2D-X. I know this is executing, as I have a 'echo Test' line that executes ...
1
vote
1answer
73 views

windows env variables not resolving

I have the following env variables: VIM_HOME: %ProgramFiles(x86)%\Vim\vim74 CMD: %USERPROFILE%\cmd PATH: ...%CMD%;%VIM_HOME%;... C:\Users\me\cmd\vim.bat @echo off start vim.exe %* Prompt: > ...
0
votes
1answer
103 views

ZSH: Where to place environment variable so that launched application can pick it up?

I need an environment variable KEY="value" made available to a GUI application before starting it. The launcher file (the one that places the icon on the desktop and sidebar in Ubuntu) has a value of ...
0
votes
0answers
22 views

How can I set temporary environment for explorer (renewed) [duplicate]

On windows 8.1 command prompt (cmd.exe) I can change environment variables, i.e. path. When I then start an explorer instance, that instance takes the default (its parents?) environment, not the one ...
0
votes
2answers
147 views

Set environment variable containing at symbol

I would like to set an environment variable containing the URL of my proxy server with my credentials, as in this blog post. The problem I'm having is that my password contains an at symbol and I am ...
0
votes
1answer
79 views

How to generically refer to the AppData folder on the Windows command line?

The original User's Profile directory lives in a directory like C:\Users\username\AppData. How can I refer to the current user's profile directory when using the Windows command line? By searching I ...
0
votes
1answer
661 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
2answers
545 views

Using an environment variable set to a path value: the system cannot find the path specified for %OPENCV_DIR%

I'm trying to set an environment variable to point to the directory into which I have extracted the latest version of OpenCV, following the instructions in OpenCV's Installation in Windows tutorial. ...
0
votes
1answer
516 views

Scheduled Task and environment variables WITHOUT CMD /C

I need to run a task within Windows 2003 Task Scheduler however the command needs to access environment variables: vlc.exe http://62.196.56.141:8080 ...
2
votes
1answer
880 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 ...
1
vote
1answer
1k views

Why is my PATH environment variable different from the command prompt?

A bit of important background: my company has a generic login VBS script that makes modifications to the user PATH environment variable upon login and allows me to run software that has dependencies ...
1
vote
1answer
350 views

Set environment Path Windows 7

Trying to add stuff to the system environment Path via batch, vbs or anything really. This used to work in a .bat, but has stopped: setx -m path "C:\addtopath;%PATH%" This used to work in VBS, ...
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
880 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 ...
0
votes
2answers
367 views

bash: variable name not being expanded with Tab completion

On a remote computer with bash version "3.2.51(1)-release" (OS: SUSE Linux Enterprise Server 11.1 (x86_64)), I could not do a usual tab completion with variable name. for example, I'd like to type: ...
0
votes
2answers
257 views

IF statements in batch files

I am currently using Cruise Control to schedule 'builds' for various internal websites. I use batch files to kick off each of these 'builds' (build meaning a specific webhelp output). Let's say ...
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 ...
0
votes
2answers
225 views

Creating folder alias like %SystemRoot% in windows 7

I'm trying to create a shortened path to a directory that is nested in a lot of directories (ie C:\Users.......................................\TestApp\Data\32\TutorialData which is 80+ characters to ...
6
votes
3answers
4k views

Why won't my Windows 8 Command line update its path

I needed to add a new entry to my PATH variable. This is a common activity for me in my job, but I've recently started using Windows 8. I assumed the process would be similar to Windows 7, Vista, ...
1
vote
2answers
2k views

%USERPROFILE% variable not working

If I try to create files in the command prompt using the commands mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\recovery mkdir C:\Users\Tristan\AppData\Roaming\modinstaller\mods my computer ...
0
votes
2answers
2k views

Add a directory and all subdirectories to the PATH variable with a single entry

I've got a directory in my home folder in which I place command-line software (CMD_Software). I put each piece of software in its own directory within CMD_Software in order to avoid clutter. I would ...
0
votes
2answers
268 views

Can I change the environment on a per-process basis on Windows (like on Unix)?

On Unix operative systems I can start a process with additional environment variables like this: $ DEBUG=1 VERBOSE=3 python myscript.py Does the Windows CMD have an equivalent for this? I'm stuck ...
0
votes
2answers
327 views

Root set environment variables

I have a small bash script which downloads a critical file, opens an SFPT connection, puts the file and closes the connection. As you can imagine, my script has some username and password information ...
0
votes
2answers
565 views

How do I stop the command window from automatically closing at the end? [duplicate]

Possible Duplicate: Batch file that runs cmd.exe, a command, and then stays open at prompt I have a set of environmental variables that I have to run before I can run other operations. I ...
0
votes
1answer
2k views

Adding an environment path to the Visual studio command prompt

Does the following add an environment path? setx path "%path%;C:\foo" It will leave any existing paths alone? i.e nothing will be deleted? If I open the Visual Studio Command Prompt and run the ...
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 ...
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 ...
1
vote
2answers
1k views

Windows 7 environment variable not removable

I installed MKS on Windows 7 and with it MKS Toolkit was silently installed. This also seems to set some global environment variables like "TERM" and "TERMCAP". As these variables won't work together ...
2
votes
2answers
1k views

Escaping %’s in file-/folder-names at the command-line

Does anybody of a way to access files and directories that have a % in their name (which is valid) from the command-line? Specifically, if there are two %’s and the text between them happens to ...
3
votes
1answer
1k views

Will PROCESSOR_ARCHITECTURE Environment Variable Identify as 32 Bit on a 64 Bit Machine with a 32 Bit OS Installed?

If I had a 32 bit version of Windows installed on a 64 bit capable machine, will the following command return "x86"? echo %PROCESSOR_ARCHITECTURE%
0
votes
1answer
190 views

Is there a “FORCMD” variable (like “DIRCMD”, “COPYCMD”, etc.)?

The dir command checks for a dircmd environment variable for default arugments to use. Likewise, the copy and move commands check copycmd. Is there a corresponding variable (by any name) for the for ...
2
votes
1answer
887 views

How can I add directories to the PATH only for instances of CMD.EXE in Windows 7?

I don't want to modify the system path in Windows 7, or the user path either. But when I start up a Command Prompt (cmd.exe), I would like the path within the command prompt to be modified to include ...
8
votes
2answers
6k views

Is it possible to “declare” a windows cmd-file (batch-file) as 32 bit?

Background: We do quite some scripting and little helpers with batch files (xyz.cmd) at work. Windows 7 is only now starting to become widespread here, and obviously, we hit the problems associated ...
4
votes
1answer
110 views

Using a system variable with spaces without truncating prematurely

I need to do something similar to this: dir > %USERNAME%.txt But what I get is that if the filename has a SPACE(" ") in it, then the name is cut there. I know that if I do this: set ...
5
votes
2answers
278 views

Any quick way to call a directory using an environment variable in Powershell

Say I have a user environment variable named p and it's value is the path where I store my projects. In Command Prompt you can use them to quickly access a particular directory from anywhere on the ...
71
votes
4answers
149k views

How can I display the contents of an environment variable from the command prompt in Windows 7?

In Windows 7, when I start the Command prompt, is there any command to display the contents of an environment variable (such as the JAVA_HOME or PATH variables)? I have tried with echo $PATH, echo ...
1
vote
1answer
237 views

Environment variables don't work

I can't get any environment variables to work besides Java. Here's a picture to show what I mean: Can anyone help out?
0
votes
2answers
81 views

Is there a cursor-based interface to change environment variables?

I often need to change a small part of long environment variable (especially, e.g., paths), and do it either by pasting the thing into an editor and changing it there, or the equivalent. Is there ...