English 中文(简体)
Windows 命令行 - 指派高优先级给环圈中的 FHSTSTR
原标题:Windows Command Line- Assign High Priority to FINDSTR within a loop

有没有人知道如何操纵这个代码,以便永远把查明身份和可疑交易报告进程列为高度优先事项?

FORFILES /P C:path /M * /C "cmd /c FINDSTR /c:"@FILE"   C:path*">C:path
epgenresults.txt

我尝试过手动在任务管理器中指定优先级,但我需要这样做几千次,因为每个有新循环周期的新程序都被指定为正常优先级。我还尝试了将 cmd 组合起来并启动功能而没有太多运气。 有什么想法吗?

问题回答

您可以将所有文件放入批量文件, 然后使用命令 START 执行优先选择的批量文件

见START参考资料

示例示例示例示例

START "RunAsHighPriority" /HIGH /WAIT YourCommand.cmd 




相关问题
Command Line Parameters

I m trying to add my file in Visual Studio as command line parameters. I know my code works since when I use fopen("whole path here", "r"), it runs. I then add the file as a command line parameter ...

Read from File, or STDIN

I ve written a command line utility that uses getopt for parsing arguments given on the command line. I would also like to have a filename be an optional argument, such as it is in other utilities ...

R - capturing elements of R output into text files

I am trying to run an analysis by invoking R through the command line as follows: R --no-save < SampleProgram.R > SampleProgram.opt For example, consider the simple R program below: mydata =...

热门标签