【问题标题】:Vbscipt error while creating a named pipe创建命名管道时出现 Vbscript 错误
【发布时间】:2012-06-11 00:50:02
【问题描述】:

我是 vbscript 以及命名管道的新手。

这是我的代码:

Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("\\.\pipe\tstpipe")
a.WriteLine("This is a test.")
msgbox "hello"
a.Close

错误“找不到文件,第 2 行” 它无法识别文件夹“管道”,因为我没有创建任何名为管道的文件夹。但我认为应该有一个名为管道的默认文件夹。我对么? 我是否缺少管道的任何配置?

【问题讨论】:

    标签: ipc pipe


    【解决方案1】:

    CreateTextFile("\.\pipe\tstpipe", true);

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 2019-10-22
      • 1970-01-01
      • 2014-12-21
      • 2018-10-03
      相关资源
      最近更新 更多