Skip to main content

All Questions

Tagged with
0 votes
0 answers
38 views

Process.Start() - Both see and redirect output

I'm using process to run a command line program. When it runs from a command line it tells you where it is in the process of running, which can take a few hours, and occasionally gets stuck part way ...
AndyD273's user avatar
  • 7,229
0 votes
0 answers
93 views

Get Window Titles from remote machine

I'm writing a Windows Service to gather a list of open window titles from a bunch of remote servers using vb.net. It seems to me that with .Net and PowerShell (I've tried with both!), it's easy to get ...
Darren's user avatar
  • 13
0 votes
0 answers
62 views

Reading stdout in Parallel Factory Tasks without using BeginOutputReadLine

In the code below, taken from this solution, parallel processes can be launched and stdout is read one line at a time and the output stored in the form's controls. It works like a charm. Private ...
Dude named Ben's user avatar
0 votes
1 answer
121 views

Process.MainWindowTitle changed behaviour in Windows 11

To be able to use multiple versions of an MS access front-end application I wrote an executable startup utility using vb.net to make a numbered copy (to allow multiple instances: app0.accde, app1....
Andre Gotlieb's user avatar
0 votes
2 answers
147 views

take combo box choice and use choice as SETX

I have the following code to create a combo box that shows a list of ports in use on the PC What I want to do is take the users choice of port and assign it to a system variable using the SETX command....
Jud Slater's user avatar
0 votes
0 answers
53 views

Is there a way to determine when an external program closes?

I am using vb.net to open a Word document like this: process.start("mydoc.docx") This works to open the document in Word. But I need to know when they close the document so I can check its ...
John's user avatar
  • 1,338
0 votes
0 answers
43 views

Unable to move the file because it is being used in another process

In my project I launch a batch file (not mine) that opens a pdf file, I wait 7000 milliseconds, then I close the Adobe processes and repeat the sequence again, at the end of everything I move the file ...
Riccardo Marduk Pezzolati's user avatar
0 votes
1 answer
29 views

How do I debug a "silent" Process failure?

I am printing PDF files like this. It works fine for most of my printers: Public Sub PrintFile(ByVal uPath As String, ByVal uPrinter As String) Dim psi As New ProcessStartInfo psi.WindowStyle ...
tmighty's user avatar
  • 11.2k
-1 votes
2 answers
59 views

Unload Form1 when embedded cmd process ends

I have found some code which runs a cmd.exe shell interactively in a TextBox; later on I will replace cmd.exe with a different character based application. Here's the code: Public Class Form1 Dim P As ...
Eric van Loon's user avatar
0 votes
0 answers
148 views

Why is the process id not found in GetProcesses()

I am starting a PDF, and I get a process. The PDF is shown in a Chrome window. Then I try to find this process among the processes, but it is not there. I have even tried adding some time to wait ...
tmighty's user avatar
  • 11.2k
0 votes
0 answers
269 views

Filter with Username in Win32_Process WQL Query

I want to ask any way can direct filter username in win32_Process WQL Query? If use looping with use GetOwner method is use much time to wait if too many user open same exe. currently the query is ...
Tom96's user avatar
  • 1
0 votes
0 answers
61 views

Read the output of Process from Cipher command

Reading output from process works fine, but it is not able to read "dots" from this command: cmd /c cipher w:c: With startInfo .FileName = "cmd" .Arguments = "/c ...
Tondar's user avatar
  • 1
0 votes
0 answers
266 views

System.Diagnostics.Process not properly closing after the application is closed

I have been trying to find a solution to why the ExitTool I am using is not properly closing out after I close the main application. What is happening is that when I close my application, the ExifTool ...
John89's user avatar
  • 57
1 vote
1 answer
399 views

Process.Start() an executable and return a DialogResult to the caller

When I want to display message I'm calling Message Display sub program(EXE) from my main Program (calling program). I cannot get called exe dialog result to caller. Dim psiProcessInfo As New ...
Mark's user avatar
  • 69
0 votes
0 answers
60 views

Process runs very slowly compared to PowerShell

I'm using a small script called ffprobe.exe (part of the FFmpeg library) to read metadata from a video file. Here's my code: 'Setup the process Dim Proc As New Process() With Proc.StartInfo ....
Jyclop's user avatar
  • 499

15 30 50 per page
1
2 3 4 5
26