脚本 source insight 快速创建空的工程

win7下:
首先使用source insight 创建一个 空的工程
位于D:\safe_software\sis_temple\sis
不要添加工程文件,
该工程的代码地址也是相对地址,不是绝对地址

创建 bat文件如下:名字为 create_source_insight_project.bat
csip.bat

echo "Hello"

echo %cd%

if exist sis (
	echo "OK"
	exit /B
)


set /p "aa=Please input:"
echo %aa% 


md sis



Xcopy  D:\safe_software\sis_temple\sis  .\sis  


cd sis

ren temple.IAB %aa%.IAB
ren temple.IAD %aa%.IAD
ren temple.IMB %aa%.IMB
ren temple.IMD %aa%.IMD
ren temple.PFI %aa%.PFI
ren temple.PO  %aa%.PO
ren temple.PR  %aa%.PR
ren temple.PS  %aa%.PS
ren temple.WK3 %aa%.WK3

cd ..

pause

将 D:\safe_software\sis_temple 放入 环境变量Path中,
在想要创建工程的目录下面,进入DOS模式,
执行:
csip.bat
或者
create_source_insight_project.bat
或者
csip

会在当前目录下面创建一个 sis目录
你自己重新命名之后,
然后重新添加工程文件

source insight 4 版本

D:\safe_software\sis4_template
脚本:csip.bat

echo "Hello"

echo %cd%

if exist sis (
	echo "OK"
	exit /B
 ) 

md sis

set /p "aa=Please input:"
echo %aa% 



Xcopy  D:\safe_software\sis4_template\sis  .\sis   /e

cd sis\template.si4project
ren template.siproj                 %aa%.siproj
ren template.bookmarks.xml          %aa%.bookmarks.xml
ren template.siproj                 %aa%.siproj
ren template.siproj_settings.xml    %aa%.siproj_settings.xml
ren template.sip_sym                %aa%.sip_sym
ren template.sip_xab                %aa%.sip_xab
ren template.sip_xad                %aa%.sip_xad
ren template.sip_xm                 %aa%.sip_xm
ren template.sip_xsb                %aa%.sip_xsb
ren template.sip_xsd                %aa%.sip_xsd
ren template.siwork                 %aa%.siwork

cd ..

ren template.si4project     %aa%.si4project

cd ..
pause




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值