Hello.
I have a C++ application that can take commands through a named pipe. Is it any way to open a named pipe from vbscript and send a text string, for example "restart" through it?
Hello.
I have a C++ application that can take commands through a named pipe. Is it any way to open a named pipe from vbscript and send a text string, for example "restart" through it?
Does it work if you open \\.\pipe\YourPipeName
? The \\.\
notation gets you up one more level in the Windows namespace compared to the ordinary file system, from there you can access the pipes etc. I have no idea though if it works from VBScript.
MSDN has some information on the file vs. Win32 namespaces.
CodeSegment has a sample on writing to named pipes from VbScript.