等效于/dev/stdout的cmd.exe,用于“作为文件"写入stdout [英] cmd.exe equivalent of /dev/stdout, to write to stdout 'as a file'

查看:45
本文介绍了等效于/dev/stdout的cmd.exe,用于“作为文件"写入stdout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个调用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.

看一下这个线程: https://superuser.com/questions/241272/windows-how-to-to-redirect-file-parameter-to-stdout-windows-equivalent-of-dev-st

这篇关于等效于/dev/stdout的cmd.exe,用于“作为文件"写入stdout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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