|
指定到資料匣的作法我也是用2樓的作法!4 N' _7 K0 q0 | }1 [
程式檔名我用UG內的目錄名稱,讓POST自動輸出....將底下的語法加入POST最後面,end_of_porgram,
, t8 o2 ] ^$ Z6 d1 v! Q試試..
. e X2 j) l. y I" w6 k4 x1 S6 O# j; U
global mom_group_name mom_output_file_full_name mom_output_file_suffix
% j c7 ^9 i9 Xglobal mom_output_file_basename mom_output_file_directory- A+ V, |/ Z. E- x$ i( Z( {
global nenamed_file
2 T2 h s7 s) J8 R) |+ H. XMOM_close_output_file $mom_output_file_full_name: P9 a1 a' S" P3 Y1 u. P
. U: i/ C$ o2 L+ G0 N. n7 X, v1 ]
set renamed_file $mom_output_file_directory$mom_group_name.$mom_output_file_suffix1 ]. \3 a; w) {+ X" z* G
( j8 a$ B0 d& [7 c3 h1 | mif {[file exists $renamed_file]} {% a* c$ T$ }9 `9 l" r# Q6 e( r
MOM_remove_file $renamed_file
7 F3 J8 H. z% {4 @$ Z, f }
6 C' t# a+ {$ P/ X" w; u- L
! a0 \0 ^3 b# F- }; \: Sfile rename $mom_output_file_full_name $renamed_file |
|