等效于/dev/stdout的cmd.exe,用于“作为文件"写入stdout [英] cmd.exe equivalent of /dev/stdout, to write to stdout 'as a file'
问题描述
我有一个调用Windows GUI应用程序的批处理文件.GUI应用程序将其输出(无论如何还是有趣的东西)写到自己的GUI显示而不是stdout,但是我希望它显示在运行批处理文件的cmd窗口中.
I have a batch file that calls a Windows GUI application. The GUI app writes it's output (the interesting bits anyway) to it's own GUI display rather than stdout, however I would like it displayed in the cmd window where the batch file is running.
非常感谢,该应用程序具有将输出写入文件的选项,因此我需要将其重定向到stdout.在* nix中,我将给/dev/stdout
作为要写入的文件,但是在Windows/cmd中又如何呢?
Thankfully the app has an option to write the output to a file, so I need to redirect this to stdout. In *nix I would give /dev/stdout
as the file to write to but what about in Windows/cmd?
推荐答案
Windows似乎不等同于unix/dev/stdout.
It seems that Windows has no equivalent to unix /dev/stdout.
这篇关于等效于/dev/stdout的cmd.exe,用于“作为文件"写入stdout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!