从bat文件运行命令行应用程序

时间:2016-03-29 09:15:24

标签: batch-file

我是蝙蝠新手。我总是从Win cmd运行blastdbcmd.exe,如:

cd C:\inetpub\wwwroot\webclient\db\nucleotide
blastdbcmd -entry all -db gss_annot.00 -outfmt %f

如何编写运行相同命令的bat文件?

我在我的bat文件中尝试:

cd C:\inetpub\wwwroot\webclient\db\nucleotide
blastdbcmd -entry all -db gss_annot.00 -outfmt %f > C:\blastdbcmd_out.log 2>&1

但是,-outfmt%f有错误。 %f是此命令可用的格式之一,它应包含在命令行中

谢谢,

我通过以下方式解决问题:-outfmt %%f。 谢谢@Stephan。

0 个答案:

没有答案