复制保存到任意文件名.bat,放置在Visual Studio Solution目录下。

当Visual Studio Solution目录过于庞大或打算拷贝移动Visual Studio Solution时,双击打开bat文件即可。

本bat文件仅删除Visual Studio每次运行自动创建的临时缓存文件,不会删除源文件,请放心使用。

 ::请勿轻易修改此文件,以避免不可预知的错误 By gwsbhqt@163.com

 @echo off
color 0A
title Clean Visual Studio Solution Temporary File Build20160418 if not exist *.sln (color 0C & echo 当前目录不存在Visual Studio解决方案... & ping 0 /n 3 >nul 2>nul & exit) echo 清理Visual Studio解决方案临时文件... & echo. & echo 按任意键继续... & pause > nul attrib -a -r -s -h *.* >nul 2>nul
for /d %%i in (*) do (attrib -a -r -s -h %%i\*.* >nul 2>nul) del /s /q /f *.sdf >nul 2>nul
del /s /q /f *.opendb >nul 2>nul
del /s /q /f *.suo >nul 2>nul
del /s /q /f *.aps >nul 2>nul
del /s /q /f *.exe >nul 2>nul
del /s /q /f *.ilk >nul 2>nul
del /s /q /f *.pdb >nul 2>nul
del /s /q /f *.iobj >nul 2>nul
del /s /q /f *.ipdb >nul 2>nul
del /s /q /f *.log >nul 2>nul
del /s /q /f *.obj >nul 2>nul
del /s /q /f *.pch >nul 2>nul
del /s /q /f *.res >nul 2>nul
del /s /q /f *.idb >nul 2>nul
del /s /q /f *.lastbuildstate >nul 2>nul
del /s /q /f *.tlog >nul 2>nul rd /s /q .vs >nul 2>nul
rd /s /q Debug >nul 2>nul
rd /s /q Release >nul 2>nul
rd /s /q ipch >nul 2>nul
rd /s /q x64 >nul 2>nul for /d %%i in (*) do (
rd /s /q %%i\Debug >nul 2>nul
rd /s /q %%i\Release >nul 2>nul
rd /s /q %%i\x64 >nul 2>nul
) cls & echo 清理完成... & ping 0 /n 2 >nul 2>nul

清理Visual Studio解决方案临时文件:Clean Visual Studio Solution Temporary File Build20160418的更多相关文章

  1. Visual Studio解决方案及项目的配置

    配置解决方案的属性 1.配置解决方案平台,该配置实际上修改的是解决方案目录下的sln(solution)文件. 配置项目的属性 1.配置项目平台及项目的目标平台:项目-右键-属性-生成(竖着第二个选项 ...

  2. 初识Visual Studio Code 一.使用Visual Studio Code 开发C# 控制台程序

    原文:初识Visual Studio Code 一.使用Visual Studio Code 开发C# 控制台程序 1. 安装.NET Core 安装包下载地址:https://www.microso ...

  3. Android studio 使用心得(四)—android studio 多渠道打包(二)

    Android studio 使用心得(四)—android studio 多渠道打包 这篇文章讲了一种打包方式.是直接在android studio 里面可视化操作,结合配置文件.我个人觉得严格上来 ...

  4. [CVPR2017] Visual Translation Embedding Network for Visual Relation Detection 论文笔记

    http://www.ee.columbia.edu/ln/dvmm/publications/17/zhang2017visual.pdf Visual Translation Embedding ...

  5. Android studio 使用心得(六)—android studio 如何加载.so文件

    之前一直没怎么注意,以为.so文件android为像eclipse一样直接加载,但是直到昨天我在android studio上调试公司项目推送消息的时候,才发现,.so文件原来没有加载成功. 可能之前 ...

  6. Android studio 使用心得(一)—android studio快速掌握快捷键

    大家都是从eclipse转过来了,所以早就熟悉了eclipse那一套快捷键. File—>settings—>keymap–>选择eclipse就搞定 话是这么说,但是自动化提示的变 ...

  7. Android Studio(五):修改Android Studio项目包名

    Android Studio相关博客: Android Studio(一):介绍.安装.配置 Android Studio(二):快捷键设置.插件安装 Android Studio(三):设置Andr ...

  8. Android Studio(三):设置Android Studio编码

    Android Studio相关博客: Android Studio(一):介绍.安装.配置 Android Studio(二):快捷键设置.插件安装 Android Studio(三):设置Andr ...

  9. vcftools报错:Writing PLINK PED and MAP files ... Error: Could not open temporary file.解决方案

    一般来说有两种解决方案. 第一种:添加“--plink-tped”参数: 用vcftools的“--plink”参数生成plink格式文件时,小样本量测试可以正常生成plink格式,用大样本量时产生W ...

随机推荐

  1. 安装ISS服务

    二个操作系统 http://jingyan.baidu.com/article/5552ef471dcdd5518efbc976.html(win7)

  2. location优先级

    location优先级 location优先级 location /img # 直接匹配 location /img { index index.html } location = /img # 精确 ...

  3. (6)C++ 函数

    一.基本知识  1.为什么需要原型? 原型描述了函数到编译器的接口,将函数返回值类型以及参数类型.参数数量告诉编译器. 首先原型告诉编译器方法存在某些参数,如果没有原型会让编译器捕获这种错误. 其次函 ...

  4. 第四周总结和实验二Java简单类与对象

    实验目的 掌握类的定义,熟悉属性.构造函数.方法的使用,掌握用类作为类型声明变量和方法返回值: 理解类和对象的区别,掌握构造函数的使用,熟悉通过对象名引用实列的方法和属性: 理解static修饰对类. ...

  5. VC2008中如何为MFC应用程序添加和删除消息响应函数

    最近重温<MFC Windows应用程序设计>第二版这本书,里面的代码全部是使用VC6.0写的,我Win7下安装的是VS2008开发环境. VC2008下添加和删除常见的消息响应函数有两种 ...

  6. iView Card 图文组件

    <Card style="width:3.3rem" :dis-hover="false" > <div style="text-a ...

  7. Hibernate4教程六(2):基本实现原理

    整体流程 1:通过configuration来读cfg.xml文件 2:得到SessionFactory 工厂 3:通过SessionFactory 工厂来创建Session实例 4:通过Sessio ...

  8. 7G

  9. vue--先决篇

    一.vue介绍: vue是一个渐进式Javascript框架. 渐进式:即有一个核心库,在需要的时候,在逐渐添加插件的一种概念. (1)MVVM和MVC模式: MVVM是Model-View-View ...

  10. postgresql 数据库的备份和还原

    第一步:通过 cmd 进入到postgresql 安装目录的 bin 下: windows : cd C:\PostgreSQL\pg95\bin ubuntu : cd /etc/postgresq ...