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.
|