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