All Questions
37
questions
-2
votes
1
answer
39
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
447
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 ...
0
votes
0
answers
122
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
1k
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
975
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 ...
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
466
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
907
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
1k
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 ...
0
votes
1
answer
222
views
how to find out what shortcut is used for a application by start command in cmd windows? [duplicate]
How does application (any) make its shortcut for launch in installation? For example c:\>start calc will launch windows calculator, but I have no idea where is located the executable calc.exe and ...
1
vote
1
answer
176
views
%PROMPT% variable resolved differently if set directly in CMD or by Windows variables tool
When trying to customize my command prompt I faced a strange behaviour:
from the CMD the line
SET set prompt=$D $T$H$H$H$_%USERNAME%@%COMPUTERNAME%$_$P$G
works as expected:
28/05/2020 12:02:15
DDS@...
1
vote
1
answer
2k
views
Windows: How to save a variable -(input: path) to text file
I'm trying to save a variable to text file, but i'm failing:
:folder
echo. && echo Where is your folder ?
set /p userinputpath = Type input[Drive][Path]:
echo "%userinputpath%" >> ...