All Questions
Tagged with windows command-line
2,858
questions
0
votes
1
answer
22
views
Failed to update help in windows powershell
I am an absolute beginner to Command Line Interface and noticed this when trying to update the help (I'm following Learn Enough Command Line to Be Dangerous, which I suppose is for Linux and I am ...
-1
votes
0
answers
19
views
Catch call event on macOS and Windows
How to catch call events (Google Meet, Teams, Slack, etc.) on macOS or Windows, so that I can use it as a trigger and launch a script?
1
vote
1
answer
33
views
Pipe dot graphviz with echo windows from command line gives corrupted output
I'm trying to make an svg from an inline stdin (like in the documentation) :
C:\Users\VERBOSE\Desktop>echo 'digraph { a -> b }' | dot -Tsvg > output.svg
Surprisingly, this gives two files :
...
0
votes
1
answer
61
views
How to update Visual Studio Code using command line for many Windows computers?
I handle many windows server 2019 computers that has vscode installed. I want to remotly run the update, because users don't do it themselves.
I was looking for a command line i could use to update.
I ...
1
vote
1
answer
65
views
Regexp in findstr to find URLs in txt files in all subfolders
I struggle with a pretty simple CMD task.
I have a root folder (C:\folder) in which I have many subfolders and each of them contains different kind of files. I want to search all txt files in all ...
0
votes
1
answer
42
views
Why is the first command line arg lost in .NET Core app when it is run by C++ app - CreateProcess() [duplicate]
C++ app runs .NET 8 TestApp.exe
CreateProcessW(L"D:\\TestApp.exe", L"-x \"MY_PARAM\"", NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi)
Then the ...
0
votes
0
answers
15
views
Is there a way to run JS file using node.js via cmd without using full path to the file [duplicate]
I am trying to run test.js via cmd which is not located in the current directory.
When I run:
"node test.js" I get "Error: Cannot find module" error.
When I run:
"node C:\temp\...
-1
votes
1
answer
35
views
Calling Python script from command line gives, "NameError: name 'convert_json_to_csv' is not defined" [closed]
I have a Python script, convert_json_to_csv.py.
When I hit return I get error, "NameError: name 'convert_json_to_csv' is not defined".
Below is the script's contents:
import pandas as pd
...
1
vote
1
answer
56
views
Why does my powershell keep showing an unrelated error?
When I'm using Powershell, and I my command is not recognized, it always shows these extra 2 CommandNotFoundException's (CategoryInfo & FullyQualifiedErrorId). It's not blocking anything, but just ...
-1
votes
1
answer
48
views
How to call the CMD from the registry to execute the "for" command
I tried to use "url protocol" to run my "CMD" in the Windows registry. Caz I wanna split the variables more accurately. It works when i use the set to split.
However,I wanna use ...
0
votes
1
answer
504
views
How to Set Microphone Volume to 100% in PowerShell or Command Line?
I'm trying to adjust the microphone volume to a specific level (e.g., 100) using PowerShell or the command line on Windows 11. I need a reliable method that can be executed programmatically without ...
0
votes
1
answer
22
views
How to reference a list of words within the Windows command line (character limit)
I'm running a single curl -X POST command using the Windows command line.
I get an error stating: The input line is too long. This is because the command is longer than 8092 characters.
Its syntax is ...
0
votes
1
answer
53
views
How to run local python script on remote respberry pi from windows command prompt
I have my raspberry pi connected in the network on which I have to run the python script. This python script is stored locally. I am writting command as
type <Python Script> | plink <user>@...
2
votes
2
answers
65
views
Adding space after chevron (>) in PowerShell
My prompt in PowerShell looks like this:
PS>dir
I have changed the prompt to not display a path, by changing the profile file.
I want to include a space after the >.
How to do that?
I have ...
0
votes
2
answers
27
views
Why does running a Python program from the Command Line requires me to type the path in quotes?
Screenshot
They are exactly the same down to the path, it's just that the one with quotes worked and printed "Hello world!" while the one without gave me an error message instead. When I ...