zoukankan      html  css  js  c++  java
  • 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

    昨日已逝正在输入···
    赞赏支持!!!
    分享到: 更多
  • 相关阅读:
    跨站请求伪造CSRF
    XSS危害——session劫持
    跨站脚本攻击XSS
    初识jsonp
    php json与xml序列化/反序列化
    php操作xml
    HTML5 WebStorage
    串口调试助手
    dashboard
    windows定时器编程
  • 原文地址:https://www.cnblogs.com/rhxuza1993/p/10340511.html
Copyright © 2011-2022 走看看