- 积分
- 3628
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-10-21
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
今天下午尝试用批处理来批量编译,
桌面上新建了个batch文件夹:
C:\Users\Administrator\Desktop\batch
随便写了2个函数f.pro,g.pro
新建了个txt,里面写:
.compile 'C:\Users\Administrator\Desktop\batch\f.pro'
.compile 'C:\Users\Administrator\Desktop\batch\g.pro'
------
------
pro linshi
cd,'C:\Users\Administrator\Desktop\batch'
cd,current=cur
print,cur
@batch
print,f(2)
print,g(6)
end
可惜提示语法错误:
.compile 'C:\Users\Administrator\Desktop\batch\f.pro'
% Syntax error.
但是在命令行就可以:
IDL> @batch
% Compiled module: F.
% Compiled module: G.
|
|