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.
精彩评论