Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a named pipe from VBScript?

Tags:

vbscript

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?

like image 735
grigoryvp Avatar asked Aug 23 '26 23:08

grigoryvp


1 Answers

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.

like image 192
Anders Abel Avatar answered Aug 27 '26 00:08

Anders Abel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!