这个.bat文件一执行就会把这个代码都打印处理,说语法错误,求大神帮忙看看
@echo off
set target_dir=F:\tfs-service\springboot-business-productoil\springboot-business-productoil\target\classes\
echo %target_dir%
cd %target_dir%
F:
set user=F:\tfs-service\springboot-business-productoil\springboot-business-productoil\target\classes\application.properties
set dev=F:\tfs-service\springboot-business-productoil\springboot-business-productoil\target\classes\application.properties.dev
set pro=F:\tfs-service\springboot-business-productoil\springboot-business-productoil\target\classes\application.properties.pro
set test=F:\tfs-service\springboot-business-productoil\springboot-business-productoil\target\classes\application.properties.test
if exist %test% (
echo 当前是pro状态,切换到test!
ren %user% %pro%
ren %test% %user%
) else if exist %pro% (
echo 当前是dev状态,切换到pro
ren %user% %dev%
ren %pro% %user%
) else if exist %dev% (
echo 当前是test状态,切换到dev
ren %user% %test%
ren %dev% %user%
)