因本人较懒,一直认为电脑能做的就让电脑来做,所以写下这个批处理的小脚本方便工作. 场景:碰到要拷贝一个文件夹(source folder)下的多个子文件夹(sub-folder)的文件到指定文件夹下(target folder),然后进行数据文件加载 @echo offtitle copy files (*.*) from source folder( actutally it's sub-folder) to target folder by Frank v1.1color 1fsetloca…
/* *自定义遍历目录下指定后缀名结尾文件的名称的方法: * * param file:指定目录 name:指定后缀名 */ 1 public static void FileName(File file,String name){ //转换为数组 File[] listFiles = file.listFiles(); //遍历数组 for(File f:listFiles){ //判断是否是文件 if(f.isFile()){ //获取文件名称 String filename=f.getNa…
utf-8中文在source insight中显示为乱码,写了一个简单脚本,在linux下将代码转换为GBK格式,然后在source insight下正常查看. #!/bin/sh function conv() { echo "Converting $1" enca -L zh_CN -x GBK $1 } function walk() { for file in `ls $1` do if [ -d $1"/"$file ] then walk $1"…
昨天做Webi Report,需要连接一个在Webi Server Folder下面的EXCEL文件作为数据源,然后再去生成相应的报表,找了半天才找到可以连接Webi Server Folder的EXCEL的功能的位置. 方法如下: 之后即可连接使用,希望对使用SAP BO WEBI的同行有帮助. PS: 抱歉上面有拼写错误,是WEBI,不是WIBI.…
基于RedHatEnterpriseLinux V7(RHEL7)下SPEC CPU 2006环境搭建以及测试流程(之一)--介绍.安装准备.安装.config文件以及运行脚本介绍 其他 2018-05-30 13:27:18 阅读次数: 0  https://www.codetd.com/article/1137423 <版权声明:本文为博主原创文章,未经博主允许不得转载> 本次利用SPECCPU2006测试工具来进行Intel CPU Xeon E7-**** v4的测试以及调优,计划在机…
场景 指定一个路径和后缀名,查找这个路径下所有以此后缀名结尾的文件. 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi关注公众号 霸道的程序猿 获取编程相关电子书.教程推送与免费下载. 实现 新建工具类FileHelper,工具类中新建方法GetFileListWithExtend public static List<string> GetFileListWithExtend(DirectoryInfo directory, string…
网上的破解版的注册表文件都是针对32位系统的,所以在64位系统里运行根本无法破解.下面分别贴出这俩系统里的破解文件. 使用方法: 分别复制对应系统的内容,新建文本文档,将内容粘贴进去,重命名为.reg文件,双击运行,弹出提示窗口,点击“确定”,整个世界都清净了. Win7&Win8 64bit: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Source Dynamics\Source…
TFS: 1. 打开Option -> Source Control -> Visual Studio TFS -> Configure User Tools; 2. 添加 .*, Compare, C:\Program Files (x86)\SourceGear\DiffMerge\DiffMerge.exe, /title1=%6 /title2=%7 %1 %2; 3. 添加 .*, Merge, C:\Program Files (x86)\SourceGear\DiffMer…
unit DirTreeView; interface uses   SysUtils, Classes, Controls, Forms, ComCtrls; type   TDirTreeView = class(TTreeView)   private     FRootPath: string;     FExt: string;     FFileName: string;   protected     procedure Collapse(Node: TTreeNode); ove…
安装时出现了以下错误,解决方法 git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree fetch origin remote: HTTP Basic: Access denied fatal: Authentication failed for 'https://git.dian.so/powergreen/firmware.git/' remote: HTTP Basic…