Skip to main content

All Questions

2 votes
1 answer
396 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 ...
Jacques Ramsden's user avatar
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 ...
3Dot's user avatar
  • 1
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 ...
Noumeno's user avatar
  • 106
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 ...
hidden_machine's user avatar
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, ...
Vitaly Senko's user avatar
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 ...
JacopoStanchi's user avatar
0 votes
1 answer
281 views

Why clearing PATH in windows CMD prompt makes it close immediatly?

Consider these 2 versions of a cmd script. First Version (overrides PATH) set PATH=%USERPROFILE%.cargo\bin;%USERPROFILE%.rustup; %~d1 cd "%~p1" call cmd Second Version (add some path to ...
CoffeDeveloper's user avatar
2 votes
0 answers
220 views

Python and Perl not recognized in cmd even after adding in environment

It was fine yesterday, but it suddenly stopped working today. Both my perl and python were not recognized in cmd. I read as much as i can online for the answers and follow the instruction. I have ...
niknur's user avatar
  • 21
3 votes
2 answers
11k views

youtube-dl 'youtube-dl' is not recognized as an internal or external command, operable program or batch file

I have already added the path to environment path variable. But when I tried to execute it through cmd . I am getting the error 'youtube-dl' is not recognized as an internal or external command, ...
Aman's user avatar
  • 169
9 votes
2 answers
13k views

Set and print content of environment variable in cmd.exe subshell?

Consider this example, where I start a new "sub" instance of cmd.exe, and then try to set a new environment variable in it, and then check if it has the proper value set (this is in cmd.exe of Windows ...
sdbbs's user avatar
  • 1,402
0 votes
0 answers
49 views

Command prompt. Is it possible to create a certain number of variables according to the lines in a text file and then

Can we use a text file to set variables according to how many changing lines are there in the .txt file? files.txt name 1 text 2 info 3 ... and so on set line01="name 1" set line02="text 2" ...
10Y01's user avatar
  • 23
0 votes
3 answers
4k views

how to use output as VARIABLE and put trimmed value into CLIP?

can anyone teach me the right way? here is my attempt code: @echo off SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION "%~dp0..\x64\mediainfo.exe" --Inform=General;%%UniqueID/String%% "%~dp0..\files\...
gamer0's user avatar
  • 931
0 votes
2 answers
1k views

Trying to use an environment variable in a .cmd script, getting the message "\Windows was unexpected at this time"

I need to access a windows environment variable in a .cmd script, it looks something like this, following the documentation on microsoft's support: if "%MY_ENV_VAR%" == "" ( echo You must set your ...
theJuls's user avatar
  • 103
3 votes
0 answers
2k views

How can I set a dynamically evaluated environment variable for Windows' Command Processor (cmd.exe)?

The Windows command processor (cmd.exe) supports environment variables like USERNAME and USEPROFILE. The value of these variable is always the same after they have been set. But if I execute echo %...
Michiel van Oosterhout's user avatar
0 votes
1 answer
497 views

CMD: SET : SETX :: %ABC% : ??? -- Getting "global"/"original" ENV after altering by SET

SET "temporarily" sets/changes an environment variable. How do I get the "original" / "global" / "unchanged" one from a shell/process in which it has been ...
stuquus's user avatar

15 30 50 per page