摘要: linux下:find . -type d -name ".svn"|xargs rm -rfwindows下:1、在项目平级的目录,执行dos命令: xcopy project_dir project_dir_1 /s /i2、或者在项目根目录执行以下dos命令 for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn"其实第二种方法可以用来干很多事的,比如把代码中的.svn替换为任意其他文件名并在硬盘根目录下执行,就可以从硬盘上删除所有的这个文件啦。3、加注册表J 阅读全文
posted @ 2012-02-03 18:14 wizardface 阅读(771) 评论(0) 推荐(0)
摘要: 最近要写一些hvm虚拟机windows调用xen中hypercall的代码,发现一个问题就是unsigned long在windows中和linux中代表的位数不同,因此想调查一下。使用测试程序:#include <stdio.h>int main(){ printf("unsigned long long: %d\n", sizeof(unsigned long long)); printf("unsigned long: %d\n", sizeof(unsigned long)); printf("unsigned int: % 阅读全文
posted @ 2012-02-02 15:27 wizardface 阅读(4078) 评论(0) 推荐(0)