本帖最后由 newswan 于 2021-4-15 11:35 编辑
回复 3# pujizhongxue - set "p=C:\Program Files (x86)\Python37-32\Scripts\;C:\Program Files (x86)\Python37-32\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\dotnet\"
- set "p1=C:\Program Files (x86)\Python37-32\Scripts\"
- set "p2=C:\Program Files (x86)\Python37-32\"
- set "p3=C:\Program Files (x86)\Python37-32\Scripts\;C:\Program Files (x86)\Python37-32\;"
-
- echo "%p%" | find "%p1%" && set IsNull=true || set IsNull=false
- echo %IsNull%
- echo "%p%" | find "%p2%" && set IsNull=true || set IsNull=false
- echo %IsNull%
- echo "%p%" | find "%p3%" && set IsNull=true || set IsNull=false
- echo %IsNull%
复制代码 没有问题
用 echo on 检查命令行 |