• Public_1.bat


    :: target
    set targetFileName=Public_2
    set targetPath=./
    :: source
    set sourceFileName=Public_1
    @echo ui run task
    @echo -----------------------------------------------------------------------------
    copy /y "%sourceFileName%form.ui" "%targetPath%%targetFileName%form.ui"
    @echo off
    setlocal EnableDelayedExpansion
    @echo -----------------------------------------------------------------------------
    @echo spec run task
    @echo -----------------------------------------------------------------------------
    for /f "delims=" %%i in (%sourceFileName%.spec) do (
    set var=%%i
    set var=!var:%sourceFileName%=%targetFileName%!
    echo !var!>>%targetPath%%targetFileName%.spec
    )
    @echo -----------------------------------------------------------------------------
    @echo form run task
    @echo -----------------------------------------------------------------------------
    python -m PyQt5.uic.pyuic "%targetFileName%form.ui" -o "%targetPath%%targetFileName%form.py"
    @echo -----------------------------------------------------------------------------
    @echo py run task
    @echo -----------------------------------------------------------------------------
    for /f "delims=" %%i in (%sourceFileName%.py) do (
    set var=%%i
    set var=!var:%sourceFileName%form=%targetFileName%form!
    echo !var!>>%targetPath%%targetFileName%.py
    )

    @echo -----------------------------------------------------------------------------
    @echo ui run bat task
    @echo -----------------------------------------------------------------------------
    for /f "delims=" %%i in (%sourceFileName%RunUi.bat) do (
    set var=%%i
    set var=!var:%sourceFileName%=%targetFileName%!
    echo !var!>>%targetPath%%targetFileName%RunUi.bat
    )
    @echo --------okay---------

    =====================

    set targetPath=./
    :: source
    set sourceFileName=Public_1
    @echo -----------------------------------------------------------------------------
    @echo form run task
    @echo -----------------------------------------------------------------------------
    python -m PyQt5.uic.pyuic %sourceFileName%form.ui -o %targetPath%%sourceFileName%form.py

    昨日已逝正在输入···
    赞赏支持!!!
    分享到: 更多
  • 相关阅读:
    ubuntu>雷鸟只能收邮件不能发邮件
    ubuntu>安装jdk(转)
    ubuntu>修改root密码
    ios>Could not instantiate class named NSLayoutConstraint(转)
    ios>xcode4.5 如何找到以前的iphone模拟器(转)
    Windows7系统开始菜单改成经典样式
    ASP.NET多语言版的开发
    Dynamic repositories in LightSpeed
    Enhancing queries in dynamic repositories
    C# 4.0 Dynamic关键字全解析
  • 原文地址:https://www.cnblogs.com/rhxuza1993/p/10340511.html
Copyright © 2020-2023  润新知