Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 是否有set/p通配符条目?_Batch File_Variables_If Statement_Wildcard - Fatal编程技术网

Batch file 是否有set/p通配符条目?

Batch file 是否有set/p通配符条目?,batch-file,variables,if-statement,wildcard,Batch File,Variables,If Statement,Wildcard,我肯定有办法,但我的谷歌游戏没有那么强大。有没有办法获取set/p的通配符条目?在我的示例中,我将使用*来显示我想要通配符的位置 set /p exam="enter exam number " if %exam%=6* goto 1 if %exam%=2* goto 2 因此,如果考试从6开始,它将转到:1,同样从2开始。 希望我解释得足够好。这是p中的吗?这看起来不像是在P中。可能是@Will的副本这不是P,这是批处理文件这是在P中吗?这看起来不像是在P中。可能是@Will的重复。这不是

我肯定有办法,但我的谷歌游戏没有那么强大。有没有办法获取set/p的通配符条目?在我的示例中,我将使用*来显示我想要通配符的位置

set /p exam="enter exam number "
if %exam%=6* goto 1
if %exam%=2* goto 2
因此,如果考试从6开始,它将转到:1,同样从2开始。
希望我解释得足够好。

这是p中的吗?这看起来不像是在P中。可能是@Will的副本这不是P,这是批处理文件这是在P中吗?这看起来不像是在P中。可能是@Will的重复。这不是P,它是一个批处理文件