0
votes
1answer
26 views

How to access Java JARs through CLASSPATH environment variable on Windows 7

I know there is this article on JAR files on Linux but the solution involves some Linux specific commands I don't know, and ultimately I'd like to understand if I can access my JAR (and JARs it ...
0
votes
2answers
49 views

Accidently deleted PATH environment variable - how do I get it back? [duplicate]

I had to add the JDK path in the system variables which is under environment variables, but by mistake I deleted the default path which was present in the Path and pasted the JDK path. So how do I ...
5
votes
1answer
47 views

How to determine whether a folder in %PATH% is required in Windows 7

How can I determine whether a particular folder in the PATH environment variable is used by the system? Recently, some software that relied on the system PATH stopped working b/c another package ...
0
votes
2answers
47 views

Two environment variables with the same name

I tried adding an 'Environment variable' with the name "PATH" but I found another entry with the same name. can I change the old one to a different name? I tried openning "GPAC" folder, but didn't ...
0
votes
1answer
30 views

Win7 loses PATH from user profile

Recently, a very weird thing started to happen that has not happened before: Suddenly, from out of nothing Windows 7 & "forgets" the part from PATH from the user profile. As can be seen on the ...
0
votes
0answers
133 views

Problems installing postgresql-9.3.4-4-windows-64 on windows 7

I am trying to install postgresql-9.3.4-4-windows-64 on Windows 7 x64 and keep getting the error message: Error. There has been an error. Unable to write inside TEMP environment variable path. ...
0
votes
1answer
228 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 ...
1
vote
0answers
52 views

Would a longer PATH environment variable slow down a system?

In Windows 7, will a long system PATH environment variable slow down the system in any noticeable/tangible way? My system PATH variable is 45-entries deep. I have an i7 930 @ 4.2GHz, but out of ...
0
votes
3answers
236 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
110 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
120 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
1answer
415 views

Why are the PATH environment variables handled differently when I run cmd.exe as admin?

Original post: When I start cmd.exe normally, my PATH variable only contains the paths from the system environment variable. Only when I start cmd.exe as admin does PATH contain a concatenation of ...
1
vote
2answers
729 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 ...
3
votes
2answers
1k 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 ...
0
votes
1answer
48 views

%PATH% in Explorer bar causes error

When I type "%PATH%" in the address bar of Explorer, I get the error "Windows can't find ...
0
votes
2answers
208 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
106 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
1answer
310 views

environment variable for hkey_users/software

Many of my software configurations are stored in theHKEY_USERS\S-1-5-21-2715202203-4090495733-1863141328-1000\Software reg-folder. For developing Portable apps, I want to know the environment variable ...
0
votes
2answers
106 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 ...
1
vote
1answer
2k views

how to properly set environment variables

I've recently started using Windows (having used Ubuntu up until now) and I find myself unable to properly set environment variables. Whenever I set them they don't seem to work. I've been going to ...
0
votes
1answer
105 views

Cygwin messes up Windows PATH

I installed Cygwin and uninstalled it after some time on a Windows 7 machine. But, the PATH variable directories naming is not correct now. Could some one tell me how do I correct this? Log below - ...
0
votes
2answers
778 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 ...
4
votes
1answer
63 views

When should you set PATH variables in “User variables” vs. “System variables”?

On a single-user system (Windows 7), does it matter whether you set PATH variables in User-variables or System-variables? Why choose one over the other?
1
vote
2answers
71 views

Win7 Path not being recongized

I have this path PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program ...
3
votes
1answer
201 views

Powershell systemroot in $env:path different when AC elevated

I have a strange behavior with the environment variables at my Windows XP SP3. When I logon as Administrator, the %SystemRoot% strings in PATH are substituted to C:\WINDOWS, the value of the variable ...
0
votes
0answers
176 views

Using environment variables in windows registry

I have a game that normally saves everything to the same folder. I want to have a separate save folder for each windows 7 account. The game's save path is stored in the windows registry. It doesn't ...
1
vote
1answer
2k views

How to change the location of APPDATA?

My C: is getting full regularly and now I don't have space. (It is less than 500Mb and system freezes or crashes often). I have already moved all user documents to other harddrive. I want to move ...
2
votes
3answers
64 views

How to get to Environment Variables from Run

I often need access to the Environment Variables on my Windows 7. What command do I need to type in the Run window to get to them? At the moment I do the following: Control Panel > System > Advanced ...
1
vote
1answer
109 views

Deleting an Environment Variable from all users on Windows

I need to know if there is any way to delete all the instances of a given environment variable, this means from all users and from the system itself. The problem is about a software update. I need to ...
0
votes
1answer
2k views

Strange Windows Errors

I run Windows 7 and I've been getting strange errors from different applications, for example attempting to uninstall VMware Workstation causes the following error: "Error in the lua script: [string ...
0
votes
0answers
151 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 ...
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
385 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, ...
0
votes
1answer
186 views

How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7? [duplicate]

I'm working on Windows 7. How can I permanently add a new path to the 'PATH' environment variable of the current user? I tried to do so with wmic: wmic ENVIRONMENT where "name='Path' and ...
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 ...
0
votes
2answers
122 views

In Win7 can both User and System “TEMP” variables point to the same directory?

I know i can do it, but is it a bad practice? It will look like this: (System)TEMP -> E:\TEMP (User)TEMP -> E:\TEMP (System)TMP -> E:\TEMP (User)TMP -> E:\TEMP
1
vote
2answers
53 views

Creating a system variable

I would like to get some suggestion regarding adding an entry to the PATH variable under System Variables. Whenever I install a program on my windows machine, I end up adding the path to the program ...
0
votes
1answer
248 views

How to resolve conflicts with different apps relying on different PATH variables?

I have two programs that rely on some .dll files. (Wikidpad and Microsoft WebMatrix2.) I was using WikidPad for a while without issue. After I installed WebMatrix2 (which uses IIS Express, I ...
0
votes
2answers
72 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
1answer
31 views

Auditing use of system vars in Win7

I was wondering if there is a way to mount some sort of a hook on a system variable in Win7 which would allow me to trace which application and at what time referenced it. I would like to know this ...
0
votes
2answers
321 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 ...
1
vote
1answer
338 views

Is it possible to use a Windows environment variable in a Chrome bookmark?

I use a software library whom I often refer to the documentation pages. Those are html pages, therefore I created several bookmarks to quickly access to them. However, when the library version ...
9
votes
2answers
5k views

Cannot resolve %windir% / Cannot modify %path% or %path% being reset on boot

See Updates 3 and 4 below for how the issue has evolved My computer (Windows 7 x64, Lenovo Thinkpad T530) is having an issue resolving %windir%. After boot-up, everything works fine. At some ...
0
votes
2answers
2k views

Home directory variable for Windows 8

Is the home directory variable for Windows 8 the same as it was for Windows 7, %UserProfile%?
1
vote
2answers
673 views

Environment variables not loading on startup

I'm encountering a strange issue where it doesn't look like my environment variables are loading up properly whenever windows starts up. This was actually a pain to figure out what was happening and I ...
0
votes
0answers
105 views

Why does %ProgramFiles% not work in startup paths?

A program (allowing me to zoom with my trackpad) ran at startup on my computer. Then I disabled it through Administrative Tools > System Configuration > Startup. When I re-enabled it that same way it ...
1
vote
0answers
238 views

My path keeps getting truncated and I have to restart explorer.exe to fix it

I have a mysterious problem on my machine. Periodically I find that my path on Windows 7 machine gets set to ...
4
votes
2answers
585 views

Need to truncate the %username% variable in windows 7 to seven characters

I use a script that generates a session name for out AS400 sessions based on the system %username%, the problem is that if the username is over 7 characters long the connection will fail. The session ...
1
vote
1answer
216 views

How to set and print environment variable in Power Shell?

I work on Windows 7 and I wont to know how to set and print environment variable in Power Shell (for example $PATH)?