等效于1> / dev / null的DOS是什么? [英] What is the DOS equivalent of 1>/dev/null?

查看:122
本文介绍了等效于1> / dev / null的DOS是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想禁止在DOS下运行脚本的输出,类似于在* nix环境下的脚本输出:

I want to suppress the output of my script running under DOS, similar to the following under a *nix environment:

 $ command 1>/dev/null

我该怎么做?

推荐答案

在DOS和Windows控制台上都应为> NUL

It should be >NUL on both DOS and Windows console.

这篇关于等效于1> / dev / null的DOS是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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