2
votes
0answers
32 views

Windows: Execute program as admin with current environment and with elevation [duplicate]

This question is different from Run as administrator from command line on Windows 8 and I wrote why: I want to run a program a) as a different user b) get elevated privileges (which is additionally ...
8
votes
2answers
694 views

How do I make a batch file be able to run on other computers

When I create a batch file on my computer to execute start c:\Users\________\Whatever\..., it works on my machine. How can I get it to work on someone else's machine, since their username isn't my ...
0
votes
1answer
47 views

How to call a Windows Environment Variable in a Shell script?

It is possible to call Windows Environment Variables in a bat script by defining e.g. %JAVA_HOME%. It looks like this is not possible using CygWin and shell scripts. Is it possible to call Windows ...
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. ...
0
votes
1answer
128 views

Forcing programs to be installed to another drive

I have an SSD as my main Windows drive, with a 640GB 2.5" HDD, partitioned to store programs and user settings, and also to act as backup (it's the only thing I had lying around at the time of ...
1
vote
0answers
36 views

Stop Windows %tmp% environment variable using short file name

I have a C++ application that is using the %tmp% variable (from the GetTempPath() function). Unfortunately there is a bug where it can't handle the tidle that may appear in the user's local temp ...
0
votes
3answers
152 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
37 views

Does the order of the directories listed in the Windows PATH variable affect system performance in any meaningful way?

I've noticed that when programs add their directory to the PATH environmental variable, most append it to the end but a few add it at the beginning, before the windows directory. So it made me wonder, ...
1
vote
0answers
85 views

PATH variable - System vs User - why is it dangerous to modify System PATH on Windows?

While installing MinGW, the users are warned about making changes to the System PATH variable: You should not alter the system path variable in any manner, or you will cause all sorts of problems ...
0
votes
0answers
28 views

Shell hangs after passing STDIN to EDITOR with -w parameter

I want to edit svn's svn:ignore property: svn propedit svn:ignore . This doesn't work: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time ...
1
vote
1answer
67 views

How do I extend my PATH environment variable?

Being a power user, my %PATH% variable just isn't long enough to install everything I want to install. Is there any way I can extend the effective length of the variable, or otherwise get more paths ...
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
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: > ...
3
votes
2answers
610 views

TEMP vs TMP in Environment Variables

Is it right to have these two environment variables TEMP and TMP? If I make changes to one should I make the same changes to the other? For example I was installing cygwin and the directions told me ...
1
vote
1answer
49 views

How to redirect a custom environment variable to Window's %HOMEPATH%

On Linux, you can obtain the path of the home directoy via HOME, in Windows via HOMEPATH. I'd like to create a custom environment variable in Windows called HOME that "redirects" to HOMEPATH. The ...
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 ...
1
vote
4answers
56 views

Stacking Windows environment variables

Is it possible to "stack" Windows environment variables such as, "RUBY_PATH" = "C\ruby\bin" "PYTHON_PATH" = "C:\python332" "PROGRAMMING_PATH" = "%RUBY_PATH%;%PYTHON_PATH%" "Path" = ...
3
votes
1answer
110 views

Is the Windows 8 path variable supposed to be this long?

I have Windows 8 and my Path variable seems like it's way longer than it's supposed to be (I'm just starting to figure environment variables and stuff out, and trying to change my Path so that I can ...
0
votes
1answer
80 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 ...
1
vote
2answers
266 views

how to access variables that are set in a different windows batch file?

i have a windows batch file - called fileA.bat, which contains a variable set in it. Sample code of fileA.bat: set fileA_username=michael now i have another batch file, called fileB.bat, which ...
0
votes
2answers
96 views

Reclaim home directory

The home directory is where a user is supposed to keep their personal files, for example documents and music. On my computer this is C:\Users\Steven also known as the %userprofile% variable. The ...
0
votes
2answers
672 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
560 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
273 views

How to set path for MinTTY under windows/cygwin correctly?

I made windows shortcut with the following target: D:\APPS\cygwin64\bin\mintty.exe /bin/env PATH=/local/bin:/usr/local/bin:$PATH /bin/bash --login -i I was expecting it prepend path with my given ...
3
votes
2answers
66 views

Alert on Windows startup

I get a weird alert on windows startup and have no clue where it is from, but I have a feeling it has to do something with environment variables. I did some research, but couldn't find a thing. I am ...
0
votes
1answer
522 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 ...
1
vote
1answer
90 views

Where is file that saves Environment Variables?

I am a developer and usually do stuff with the PATH variable. However, now there are too much path in it, and using a short textbox of Windows is a pain. Before I happen to jump into a text file, ...
0
votes
0answers
142 views

Deleted Path environment variable, how to find the older Path?

I saw the other post like this and that, but i can't solve my problem, I opened regedit and find the previous version of folder USER <-screen, when i select/open it I can see the folder in the ...
2
votes
1answer
899 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
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
votes
1answer
127 views

Visual Studio 2010 installer ignores ProgramFiles environment variables

I am installing Visual Studio 2010 and am wondering why the installer doesn't respect environment variables. ProgramFiles and related variables are configured for the D drive. PS Env:\> dir ...
2
votes
1answer
3k views

On windows 7 admin can't change environment variables and vitural memory,etc

Yesterday I want to set up a web server on my computer.After installing some software(probably MySQL cause the problem,I think),there is an odd problem with my Windows 7. I'm an admin user,but now I ...
1
vote
1answer
896 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 ...
6
votes
3answers
313 views

Is the HOME environment variable normally set in Windows?

To be clear, I'm not asking can it be set or how to set it, I'm asking is it already set at all on a new copy of Windows. The ideal way to find this out would be to install a fresh copy of Windows on ...
-1
votes
1answer
573 views

How to set environment variables on Windows 8 [duplicate]

Can anyone tell me how to set environment variables for Windows 8? I can't figure out how. I've tried following instructions for Windows 7, but they don't apply to Windows 8.
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
2answers
2k views

Using Environment variable in registry for command

I'm making a program which requires arguments from context menu (click a file and invoke my program with the file name as parameter). I'm trying to add a registry key to ...\shell\myThing\command. ...
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 ...
0
votes
1answer
5k views

Recover accidentally deleted Path environment variable

I use a Windows 7 x64. I just accidentally deleted my user path environment variable and was trying to recover it. I'm glad I found what I really need here. But I don't understand what exactly ...
0
votes
2answers
70 views

Inform the User when a specific file updates or changes (SOLVED)

The other day I tried to make a batch file that will tell the user the Contest of a file when a specific text file updates/changes here's my code so far it doesn't work for some reason :S @echo ...
0
votes
2answers
231 views

How can I add a folder containing a semicolon to the Windows PATH?

I noticed that the semicolon ; is a valid character for Windows (NTFS) file and directory names. The semicolon is, however, used as element delimiter for the PATH environment variable. Say I have a ...
1
vote
1answer
243 views

Why would the TEMP environment variable contain more than one path?

A colleague's %TEMP% environment variable has this value: C:\Users\his.name\AppData\Local\Temp; C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v78\runtime\win32; C:\Program Files ...
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
0answers
253 views

Path variable broken Windows 7?

I have been trying to compile and execute both Python 2.7 and Java programs on my Windows 7 computer. Both of these have been installed, and I am attempting to run my programs off of the command line. ...
1
vote
1answer
130 views

What is the significance of the 'Case' in PowerShell's Env: variables?

Why are some of Windows environmental variable names in Proper case, while most are in UPPERCASE? What is the reason that windir alone is in lowercase? Get-ChildItem Env: Sample: Name ...
0
votes
2answers
272 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
0answers
76 views

Set windows system enviroment variable to use the enviroment variable %username%

I'm trying to set a system environment variable to use use the current logged in username. I'm tried the below using the username environment variable but it doesn't work. I'm using "setx /m" on ...