STDOUT and STDERR From a COM Exe - com

I am creating an exe COM component using CoCreateInstance but I would like the STDOUT and STDERR for that COM exe process to be redirected to a file that I specify.
How can I achieve this?
Thanks!!!

Related

How can I edit header in dll file?

I have exe file and, that uses my own .dll library. When I launch exe file I get the error
The procedure entry point for SomeFunction could not be located in the
dynamic link library mylib.dll.
How can I fix this problem ? Is this possible to change the header in .dll using CFF Explorer or Windbg ?

How to execute a .exe file using PsExec in Finalbuilder

I need to be able to run a .exe file on a remote VM using Finalbuilder. I'm currently using PsExec, which I can get to run .msi files, but not .exe files. On a .exe file, here's what I'm trying:
Under Program file I have
msiexec
These are my parameters
/i C:\[filepath].exe INSTALLDIR=C:\[path] INSTALLMETHOD=silent
INSTALLALIAS=LIVE INSTALLREBOOTMETHOD=0 /qn /l*v C:\[log path].txt
Can PsExec not run .exe files, or is there an alternative to PsExec that works better?

LabVIEW application builder (Installer)

I have a problem with LabVIEW installer. I have a database which I communicate with using a udl file via LabVIEW. I also have other files for saving passwords etc. when I make setup file and install my program, I can not write to my files because they become read-only! I put .exe file in program file and my supporting files and database in Program Data.
The .exe program returns no error but does not write any data into files! what is the solution
Are you putting the database under "Program Files"? Try putting it under the user or public documents folder and you should be OK if that was the problem

Run an exe file with dependencies VB.Net

I know there are plenty of questions about this topic but I reviewed them and I couldn't find what I need.
I need to run an exe in VB.Net but that exe needs some files that are in the exe's folder. When I try to run the exe using Shell or Process.Start() the exe looks for those files in my app folder (and throws an error) instead of the exe original folder. I can't move my app exe nor the external exe.
Have you tried Directory.SetCurrentDirectory Method ? It sets the application's current working directory to the specified directory. change the example below with the path of the application you want to execute prior calling it.
Imports System
Imports System.IO
Directory.SetCurrentDirectory("C:\test")
Console.WriteLine("Current directory: {0}", Directory.GetCurrentDirectory())
'Execute an application from C:\test
Output :
Current directory: C:\test
You might be able to use the Windows startup path:
exePath = System.Windows.Forms.Application.StartupPath

execute file .lnk in vb.net

i need to execute a .lnk file in vb.net (lnk file that points at an exe file).
how can i do?
shell("path/file.lnk")
don't works
thx you for help.
You didn't indicate your platform, but on Windows 7, use Process.Start to launch an application using a .lnk file:
Process.Start(pathToLink)