tags:

views:

145

answers:

1

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?

+1  A: 

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.

Anders Abel
I need to open it using FileSystemObject.OpenTextFile, or something else?
Eye of Hell
Try with `FileSystemOjbect.OpenTextFile`, if it supports named pipes it should work.
Anders Abel