开发者

How to open a named pipe from 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" thro开发者_运维技巧ugh 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜