All Questions
325
questions
0
votes
1
answer
60
views
Open a Visible Cmd Window In Java
I currently have some code that executes a task:
this.cmds = new String[] { "cmd.exe", "/c", customCmd };
ProcessBuilder pb = new ProcessBuilder(cmds);
try {
pb.start();
} ...
0
votes
0
answers
26
views
Output from cmd.exe from C# differs from real command prompt [duplicate]
I'm trying to verify current python version. Since I'll check a lot of requirements for my app, it should be done via CMD using C# Process.Start()
Real CMD output (without a code, just using cmd.exe ...
0
votes
1
answer
63
views
Execute a cmd.exe command with a delay from a WinForms app
I'm working on a very simple desktop app that needs to be auto-updateable by itself, I can't use ClickOnce since the instalation path must be always the same (i.e. C:/app/myapp.exe).
My app checks for ...
0
votes
1
answer
61
views
StandardError and StandardOutput are empty when executing an exe
I am trying to make a simple winform gui just for myself
When running bbmod.exe in cmd manually it will write an error and some text, or if you provide the right arguments some success text.
But when ...
0
votes
1
answer
339
views
HP Image Assistant in CLI Mode - starting it with my own C# process?
I'm trying to make a program, that can start the HP Image Assistant in CLI mode and update the PC. I didn't find a way to make the progress of the updates show up in the command line (I don't think HP ...
0
votes
0
answers
73
views
How to access GSUTIL though C# process class?
I have gCloud configured on my laptop. With Powershell gsutil ls is listing the name of bucket.
But with the following C# code I am not getting any output!
Process process = new Process();
// ...
1
vote
2
answers
544
views
"docker ps" accepts no arguments in C# and CMD
In the project, I want to get the output from progress with the command docker ps -a --format '{{json .}}'
But the process error with "docker ps" accepts no arguments
Here is the code in C#
...
0
votes
1
answer
36
views
Catching process stdout from another python script
I have launched popen task
'''
p = subprocess.Popen(['nmap', '-', '-oX', '192.168.19.159'], stdout=subprocess.PIPE)
'''
In cmd tasklist command i can see pid of the laucnhed process ()
Can i create ...
0
votes
1
answer
656
views
How can I get the output of a Process in real time in C#?
I'm trying to start a Process designed to be used in the command line and get the output of that file as it's running. The Process has a completion percentage, which is what I want my program to get.
...
0
votes
1
answer
331
views
error when run PowerShell command from cmd c#
i want to execute this commands from c#:
@echo off
PowerShell "ForEach($v in (Get-Command -Name \"Set-ProcessMitigation\").Parameters[\"Disable\"].Attributes.ValidValues){Set-...
1
vote
2
answers
157
views
open restore point dialog c#
I am trying to open the restore point dialog from C# like
I'm using the following code:
Process.Start("SystemPropertiesProtection");
and from cmd:
public static string ExecuteCMD(...
0
votes
0
answers
173
views
Running Start-Job from cmd.exe without having to wait with Wait-Job
I was assuming that it is possible to start a process in PowerShell using Start-Job without having to wait for its completion. But apparently is not the case when I'm starting PowerShell from cmd.exe ...
0
votes
1
answer
41
views
Why cmd doesnt keep shell script processes alive?
I have a powershell script, that starts x number of Jobs. If I start it from powershell, the processes stays alive, but if start from cmd, after the script finishes every process stops.
The only way I ...
-1
votes
1
answer
523
views
List all tasks running in a specific directory and sub-directories and kill them windows
Given a specific directory in Windows,
How can I list all active running tasks by the current user in that directory and all of it's sub-directories and then proceed to kill all those tasks one by one?...
0
votes
1
answer
139
views
How to get real time std out from python script while using QProcess
here my code, real time output i can get only when using ping {address} in QLineEdit as cmd input. i want to same effect, but when execute python test.py.
QT C++ code:
#include "dialog.h"
#...