1. @echo off
    2. cd /d %~dp0
    3. ::初始化项目变量
    4. set vs="C:\panda.soft\panda.developer\VsCode\VSCode\bin"
    5. set sln=%cd%\5.code\quecpython\
    6. ::版本管理软件
    7. set versionfile=%cd%\8.version\VersionInfo.cs
    8. if not exist %versionfile% echo [assembly:System.Reflection.AssemblyFileVersion("1.0.0.0")]>%versionfile%
    9. if exist %sln% (
    10. goto OpenSln
    11. ) else (
    12. goto Tip
    13. )
    14. :OpenSln
    15. if exist %vs% (
    16. cd /d %vs%
    17. start cmd /C code -n %sln% && exit 0
    18. goto exit
    19. ) else (
    20. start %sln%
    21. goto exit
    22. )
    23. :Tip
    24. ECHO 未找到项目,请联系管理员(panjia@ulee.work)
    25. pause
    26. :exit
    27. echo 即将退出
    28. exit