WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: jkjk12 on September 04, 2015, 11:09:03 AM

Title: .exe to accept input?
Post by: jkjk12 on September 04, 2015, 11:09:03 AM
Is it possible to have a compiled WinBatch .EXE accept input?  Either from a .wbt script or any other file (.PS1, .CMD etc...)  I want a .EXE to run as a service and then be able to pass it information.  When it gets the information it will then {do stuff}
Title: Re: .exe to accept input?
Post by: td on September 04, 2015, 11:30:04 AM
There are many ways to setup inter-process communications with WinBatch scripts.  Some of them include named piped, windows messaging, TCP ports, file system files, and memory mapped files.  Which one you chose depends to some extent on each process's capabilities and how much control you have over both processes.  You can find example of most of these techniques in  the Tech Database.