执行批处理文件后,将零放在cmd中 [英] after excution of a batch file a zero is placed in cmd

查看:57
本文介绍了执行批处理文件后,将零放在cmd中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的蝙蝠文件内容是:

mysql -hlocalhost -uroot -pabc.123 olm2 < q.sql

这是我的bat文件的内容,olm2是执行bat文件后的数据库名称:-

this is the content of my bat file, olm2 is the name of database, after execution of bat file:-

mysql -hlocalhost -uroot -pabc.123 olm2  0<q.sql

执行查询,但在我的数据库名称后放置一个零

Query is executed but a zero is placed after my database name

帮忙

提前感谢

推荐答案

它不会将零附加到您的数据库名称中.它属于重定向(< )

It doesn't append the zero to your database name. It belongs to the redirection (<)

重定向输入或输出时,有多个流:

When redirecting in- or output, there are several streams:

0 = STDIN(标准输入),通常是键盘1 = STDOUT(标准输出),通常为屏幕2 = STDERR(标准错误),通常是屏幕.

0 = STDIN (Standard In), usually keyboard 1 = STDOUT (Standard Out), usually screen 2 = STDERR (Standard Error), usually screen.

从文件(< file )重定向时,默认值为 0 .

When redirecting from a file (<file) the default is 0.

尽管您可以省略它,但回显的命令行将包含它.

Although you can omit it, the echoed command line will contain it.

这篇关于执行批处理文件后,将零放在cmd中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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