Cmd命令行
鲸鱼漫步
这个作者很懒,什么都没留下…
展开
-
cmd命令行-svn externals的使用方法 (亲测有效)
工作中需要大量源代码,分散存储在不同组的版本库,在代码解析的时候需要对这些代码收集到一个库中。如果一个个checkout并存储到新库中,费时费资源,svn的external就起作用了。过命令的方式创建,有两种方式:1.指令直接设定svn propset svn:externals "https://subversion.assembla.com/svn/customlocations-greylink/trunk/Local Data" .2.文件批量设定svn pro...原创 2020-08-11 11:33:36 · 1528 阅读 · 1 评论 -
cmd命令行-字符串操作(字符串长度,字符串指定字符串的统计,获取文件路径和文件名)
字符串相关的操作,我参看网上的一些文章,如下:字符串基本操作为了完成本次需求,我写了几个函数,完成以下操作@echo offset url_str=https://svn.xxxx/svn/E2-resources/defaultroot/file_name.txtcall:getFileName %url_str% file_nameecho %file_name%call:getParentFolder %url_str% parent_folderecho %pare..原创 2020-08-11 09:12:14 · 3346 阅读 · 0 评论 -
cmd命令行-文件逐行循环读取
文件逐行循环读取@echo offsetlocal enabledelayedexpansionset base=%~dp0set file=%1%:tofileif "%file%"=="" ( set /p "file=文件路径请输入" goto :tofile)if not exist %file% ( @echo 文件不存在 set file= goto :tofile)for /f "skip=1 delims=" %%a in (%base%%file%)原创 2020-08-11 09:06:00 · 4482 阅读 · 0 评论 -
cmd命令行-SVN执行checkout文件
文件夹checkout比较简单svn checkout http://路径(目录) [本地目录全路径] --username 用户名 --password 密码文件比较麻烦,不支持直接checkout,网上查了一下,大概需要的步骤就是先checkout 空目录,再update 指定文件::https://svn.xxx/xxxdirrd /s /q mcurl mkdir mcurlsvn co --depth=empty https://svn.xxx/xxxdir temp_di原创 2020-08-11 08:29:11 · 1384 阅读 · 0 评论 -
cmd命令行-函数定义
@echo offset "var1=some hopefully not important string"echo.call myDosFunccall:myDosFunc 13 14echo.return myDosFunc: %var1%@pausegoto:eof::---------------------------------------------------------------------::--内部関数定義区::-----------------------.原创 2020-08-10 14:37:19 · 2821 阅读 · 0 评论