Skip to main content

All Questions

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 ...
Herdsman's user avatar
  • 371
0 votes
1 answer
1k views

How can I run a batch file in an isolated environment? [closed]

Changes to the environment made by a batch file persist in the calling cmd.exe's environment. Assume set.bat: SET MYVAR=42 Then in cmd.exe, I type and see: C:\Users\Me>.\set.bat C:\Users\Me>...
Zyl's user avatar
  • 105
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
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@...
DDS's user avatar
  • 741
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%" >> ...
Georg's user avatar
  • 23
1 vote
1 answer
1k views

Windows 10 command prompt is not recognizing any basic commands

I have read forums, but have not found anything useful about what to do, with someone suggesting it might be with my PATH variable, but I don't know how to fix that. Output of ipconfig: Output of ...
Philippe Fatouros'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
2 votes
0 answers
27 views

impossible to open .bat files by double clicking: can't find file [duplicate]

My problem is that when i double click a .bat file it doesn't get opened by cmd and i get this error message: "Windows cannot find 'C:\users\ (my name)\Desktop\test.bat'. Make sure you typed the ...
wattbatt's user avatar
  • 121
2 votes
1 answer
433 views

How Does py Launch Python3 on Windows Command Prompt

Im trying to understand how python get's launched from the command prompt with the "py" syntax. From my understanding, an environment variable is created, allowing python.exe to be executed from the ...
Jack's user avatar
  • 21
0 votes
1 answer
402 views

WMIC Output Result Without Property Name

I'm entering this line: wmic /OUTPUT:D:\DriverVersion.txt path win32_VideoController get driverversion The txt file has two lines in it: VariableValue XX.XXX.XXX.XX.X But I don't want ...
SammyJ's user avatar
  • 3
1 vote
1 answer
5k views

How to add to SYSTEM "PATH" environment variable in windows 10 via cmd, not to user's one?

By using setx "%path%;c:\whateverFolder I just copy system path variable to users one, therefore duplicating it, and only after it the required folder is added. Is it possible to add it to SYSTEM path ...
ymdred16's user avatar
0 votes
1 answer
2k views

system variable not set on remote machine by psexec

Need to set-up system variable on remote machine. Performing psexec \\remote_machine cmd /c setx foo bar got reply Success: Entered value was saved cmd exited on remote_machine with error code 0 ...
user2956477's user avatar
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
2 votes
1 answer
8k views

Windows CMD reset PATH variable to default

I have a question that someone surely must have come across, but maybe I'm not using the right search terms. I wish to reset the PATH variable in a command prompt to the default. So, for example, I ...
namezero's user avatar
  • 123
0 votes
0 answers
38 views

Setting an Environment Value in a FOR Loop [duplicate]

I wrote this code: set list1=This,Is,A,List set list2= FOR %%c IN (%list1%) DO set list2=%list2%-%%c I expected list2 to equal -This-Is-A-List, instead it equals -List. I have verified that it is ...
Patrick O'Hara's user avatar

15 30 50 per page