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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.