All Questions
Tagged with environment-variables cmd.exe
75
questions
0
votes
1
answer
54
views
%localappdata% and echo %localappdata% returns two different directories [closed]
I'm having some issues with Windows 10. After fixing my temp INET folder which somehow was pointing at a different account, I've now found an odd issue.
If I type echo %localappdata% in CMD, it gives ...
-2
votes
1
answer
38
views
In there some description of all the command processor macros in Windows?
I'm looking for a list of the macro strings known to Window 10 command processor, e.g. %ProgramFiles%, %ProgramFiles(x86)%, etc.
4
votes
2
answers
431
views
How do I persist windows variables set in a CMD file?
in windows I would like to have a cmd script that I can run which sets an environment variable. The variable should still be set after the script executes. The variable is a token of sorts and is ...
1
vote
1
answer
375
views
Node wont run from cmd unless the .exe extension is added
So this is a very weird one. Let me start by saying that things used to work fine.
I installed Node a few days ago and once complete I opened a command prompt (On Windows 10), I entered node --version ...
0
votes
0
answers
117
views
Why does adding a filetype to PATHEXT cause invocations to say "Access is denied"?
My goal: to run a file hello.py on my %PATH% when I write hello.
What I've done:
Made sure .py is part of PATHEXT.
C:\Windows\System32>echo %PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;....
0
votes
0
answers
42
views
What happened to this added directory in environment variables path?
Added the following directory to the path by using this method:
set path=%path%;D:\Programm\jflex-1.8.2\jflex-1.8.2\bin
set path=%path%;D:\Programm\jflex-1.8.2\jflex-1.8.2\bin\jflex
but, I can't find ...
0
votes
3
answers
984
views
How to run apps from Windows' command line like in Linux
Context: I use Fedora GNU/Linux as my main OS, but sometimes I need to work within Windows.
Over the years, using Linux distros, I have become used to working mainly through the command line, calling ...
1
vote
1
answer
130
views
Why the path(enviroment variable) is different between show in the cmd and the system property?(Windows10)
Before the question show, i use cmd order path = %path%D:\test to add a root in PATH(eniroment variable).When i use cmd order echo %path% , it shows:
D:\VMware Workstation Pro\bin\;C:\Program Files\...
0
votes
1
answer
971
views
Run script on windows startup with environment variable
Windows should run a script on startup that starts a DB based on an environment variable %SAPSYSTEMNAME%:
net start SYBSQL_%SAPSYSTEMNAME%
When i run this command in my cmd it works fine, however on ...
0
votes
2
answers
639
views
Erased System Path Variables
I was writing a batch file that was supposed to automatically set up a computer to receive "psexec" remote commads. Unluckly i didn't really pay attention to what i was writing and i wrote ...
1
vote
0
answers
17
views
What does the start command actually do? [duplicate]
Suppose I want to launch a program from the cmd (or windows powershell). If i simply type the name of the executable of course nothing starts, as my shell does not know where to find the .exe that I ...
0
votes
2
answers
5k
views
How to call programs from cmd directly without adding their paths to PATH variable on windows?
Suppose I installed a new package with someProgram in it:
myNewPackageDir/bin/someProgram
If I want to accessing it from cmd using only its name (example: someProgram --option1 a --option2 b --option3 ...
0
votes
1
answer
460
views
How using SET command with a call to CMD.EXE? [duplicate]
I have to create system variable in Windows through calling CMD.Exe.
I try :
cmd.exe /C maVar=maVal
Saddly, no maVar is created.
If i open CMD.Exe and type :
maVar=maVal
-> maVar is created.
...
2
votes
0
answers
898
views
Powershell can't see "git" or "node" commands while cmd can
Using Windows 10, I can't run certain commands from PowerShell but they all work correctly using cmd.
PowerShell:
node --version:
node : The term 'node' is not recognized as the name of a cmdlet, ...
4
votes
2
answers
995
views
PATHEXT environment variable not working
I want to use gcc on Windows, so someone gave me a MinGW folder. I put the D:\software\MinGW\bin\ folder in my PATH. But when I open a new CMD and type gcc, I get
'gcc' is not recognized as an ...