如何从 VBScript 打开命名管道? [英] How to open a named pipe from VBScript?

查看:27
本文介绍了如何从 VBScript 打开命名管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 C++ 应用程序,它可以通过命名管道接收命令.有没有办法从 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?

推荐答案

如果打开 \\.\pipe\YourPipeName 是否有效?与普通文件系统相比,\\.\ 符号使您在 Windows 命名空间中再上一层楼,从那里您可以访问管道等.我不知道它是否适用于 VBScript.

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 有一些信息文件与 Win32 命名空间.

MSDN has some information on the file vs. Win32 namespaces.

CodeSegment 有一个 示例 从 VbScript 写入命名管道.

CodeSegment has a sample on writing to named pipes from VbScript.

这篇关于如何从 VBScript 打开命名管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆