由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - how to use JAVA to created named pipe under windows?
相关主题
how to open pipe files in java[合集] JAVA里面哪些你不喜欢?
JavaServer Pages入门篇Help! application update issues.
怎么读一个文件在把读到的内容全部写到另一文件中[请教]调用外部命令编码的问题
Design optionsRe: JDBC, Java vs. Javascript
pipe & filter 问题How do I catch a PKCS#10 request?
怎样用Widget调用command line application,Beginner's Q
Process的问题A good way to compress client side data?
是否可以通过Java的程序直接导入网页?Re: How to creat a newinstance with a param??
相关话题的讨论汇总
话题: windows话题: named话题: pipe话题: java话题: do
进入Java版参与讨论
1 (共1页)
w*r
发帖数: 2421
1
Well, for linux/unix is is quite easy, just Runtime.exec("mkfifo xxx"). How
about windows??? since windows has no native command to do it, does that
mean that I have to program a c++ code to do it?
g*****g
发帖数: 34805
2
Not sure if this is waht you want with >> you can do
dir C: >> abc.txt

How

【在 w*r 的大作中提到】
: Well, for linux/unix is is quite easy, just Runtime.exec("mkfifo xxx"). How
: about windows??? since windows has no native command to do it, does that
: mean that I have to program a c++ code to do it?

m******t
发帖数: 2416
3

How
What are you planning on doing with this named pipe
once you create it in windows?

【在 w*r 的大作中提到】
: Well, for linux/unix is is quite easy, just Runtime.exec("mkfifo xxx"). How
: about windows??? since windows has no native command to do it, does that
: mean that I have to program a c++ code to do it?

w*r
发帖数: 2421
4
some existing utilities works on files/named pipes. I want to use it.
Physical file is too slow, named pipe is perfect to feed data from one
process to another in a fast efficient way.

【在 m******t 的大作中提到】
:
: How
: What are you planning on doing with this named pipe
: once you create it in windows?

m******t
发帖数: 2416
5

Just throwing an idea out there - you can probably try writing
some vbscript wrapper calling the windows api to create named pipes.

【在 w*r 的大作中提到】
: some existing utilities works on files/named pipes. I want to use it.
: Physical file is too slow, named pipe is perfect to feed data from one
: process to another in a fast efficient way.

r*d
发帖数: 896
6
这个不用的吧。我虽然不知道具体怎么写。
不过Java应该不会这么挫,你查查,应该有实现的library。

【在 m******t 的大作中提到】
:
: Just throwing an idea out there - you can probably try writing
: some vbscript wrapper calling the windows api to create named pipes.

F****n
发帖数: 3271
7
Isn't name pipe a OS shell thing? If Windows cannot do it, your utilities
won't work anyway, so why bother? If Windows can do it, just getRuntime().

【在 w*r 的大作中提到】
: some existing utilities works on files/named pipes. I want to use it.
: Physical file is too slow, named pipe is perfect to feed data from one
: process to another in a fast efficient way.

w*r
发帖数: 2421
8
windows nt/2k above do have named pipe, created under \\.\name, however,
winapi controls it and no shell command to do it:( shit.. guess I just wrote
a command line c++ utility to do it.

【在 F****n 的大作中提到】
: Isn't name pipe a OS shell thing? If Windows cannot do it, your utilities
: won't work anyway, so why bother? If Windows can do it, just getRuntime().

m******t
发帖数: 2416
9

wrote
Right, this is why I was suggesting vbscript. It'll
probably be easier to drive wmi with vbscript than
going with c++. (or maybe you are more comfortable
with c++.)

【在 w*r 的大作中提到】
: windows nt/2k above do have named pipe, created under \\.\name, however,
: winapi controls it and no shell command to do it:( shit.. guess I just wrote
: a command line c++ utility to do it.

1 (共1页)
进入Java版参与讨论
相关主题
Re: How to creat a newinstance with a param??pipe & filter 问题
Re: Can create a Interface object, why?怎样用Widget调用command line application,
Re: file permissions when using java creating filesProcess的问题
jdbc/odbc MS Access file creation question是否可以通过Java的程序直接导入网页?
how to open pipe files in java[合集] JAVA里面哪些你不喜欢?
JavaServer Pages入门篇Help! application update issues.
怎么读一个文件在把读到的内容全部写到另一文件中[请教]调用外部命令编码的问题
Design optionsRe: JDBC, Java vs. Javascript
相关话题的讨论汇总
话题: windows话题: named话题: pipe话题: java话题: do