其他分享
首页 > 其他分享> > 批处理命令dos

批处理命令dos

作者:互联网

https://www.cnblogs.com/lsgxeva/p/10694546.html

 

# 双击运行脚本

 # 设置变量rootdir的值为 %~dp0 # 当前目录

set rootdir=%~dp0 

# python.exe路径, 运行的脚本
%rootdir%pyEnv\Scripts\python.exe %rootdir%****.py

# 暂停
pause

标签:脚本,命令,exe,dp0,批处理,rootdir,python,rootdir%,dos
来源: https://www.cnblogs.com/banyanisdora/p/15522763.html