zoukankan      html  css  js  c++  java
  • 项目中用到了的一些批处理文件

    @echo on
    @c:
    @cd c:Tornado2.2hostx86-win32in&torvars.bat&cd c:Tornado2.2	argetconfigvmware&mkboot a: bootrom

    把所在目录里的所有文件名(全路径)保存到filelist.txt文件里

    dir /b/s/p/w *.* > filelist.txt

    vs工程的清理文件

    #-*- coding:utf-8 -*-
    #v1.0版本,2013.10.1  
    import os
    import string
    def del_files(dir,topdown=True):
            for root, dirs, files in os.walk(dir, topdown):
                    for name in files:
                        if os.path.getsize((os.path.join(root, name)))>204800:  #大于100K的文件
                            print(os.path.join(root, name))
                            print "delete..... "
                            os.remove(os.path.join(root, name))
                            print "delete complicated"
                    for dirname in dirs:
                        try:
                            os.rmdir(os.path.join(root, dirname))
                        except (WindowsError):
                            pass
                        #    print(os.path.getsize((os.path.join(root, name))))
    dir = os.getcwd()
    del_files(dir)
    #-*- coding:utf-8 -*-
    import os
    import string
    def del_files(dir,topdown=True):
        for root, dirs, files in os.walk(dir, topdown):
            for name in files:
                pathname = os.path.splitext(os.path.join(root, name))
                if (pathname[1] != ".cpp" and pathname[1] != ".vcproj" and pathname[1] != ".sln" and pathname[1] != ".hpp"  and pathname[1] != ".h" and pathname[1] != ".vsprops" and pathname[1] != ".py"):
                    os.remove(os.path.join(root, name))
                    #print(os.path.join(root,name))
    dir = os.getcwd()
    print(dir)
    del_files(dir)          #will delete the  file after run
    #print os.listdir(dir)
    #os.removedirs(dir)      #delete the empty directory recursively
    #for dirname in os.listdir(dir):
    #    if os.path.isdir(dirname):
    #        os.removedirs(dirname)

    vxworks安装教程

    1.按文件“tornado安装详解”的要求进行tornado安装
    2.安装到"register tornado.exe ..." 就卡住了,没响应了,任务管理器中把Tornado.exe这个进程杀掉,安装可以继续。
    4.安装完成后用提供的win7专用替换文件替换安装目录的相应文件,(建议先删除,在粘贴,因为这几个文件名为大写,直接粘贴出现过原文件还在的情况)

    最重要的是使用windows live writer

    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    PSR-2 编码风格规范
    Git中删除冗余的分支
    linux下ssh连接缓慢详解
    pytest框架之fixture详细使用
    如何利用jenkins插件查看allure报告-----完整篇
    CentOS上安装配置Python3.7
    [Python]requests使用代理
    Selenium
    Python性能分析工具-cProfile
    subprocessf运行window程序
  • 原文地址:https://www.cnblogs.com/yuliyang/p/3384883.html
Copyright © 2011-2022 走看看