How to open a named pipe from VBScript?

I have a C ++ application that can receive commands through a named pipe. Is it possible to open a named pipe from vbscript and send a text string, for example, "restart" through it?

+3
source share
1 answer

Does it work if you open \\.\pipe\YourPipeName? The notation \\.\gives you one more level in the Windows namespace compared to a regular file system, from there you can access pipes, etc. I have no idea if this works from VBScript.

MSDN contains some information about the file namespace and Win32.

CodeSegment sample VbScript.

+3

Source: https://habr.com/ru/post/1741896/


All Articles