|
指定到資料匣的作法我也是用2樓的作法!! s6 S5 H& x9 a% a/ E1 B# V# [
程式檔名我用UG內的目錄名稱,讓POST自動輸出....將底下的語法加入POST最後面,end_of_porgram,
& ~( H8 b/ r4 Y. G! e- u試試..; P. O& P2 y" \, b: u4 {
: H2 u( X- B' C: G3 i0 ?
global mom_group_name mom_output_file_full_name mom_output_file_suffix
) g2 z/ g/ d% F0 `5 Y# ?2 Zglobal mom_output_file_basename mom_output_file_directory: J- r9 t% \ Q
global nenamed_file
+ D C% \2 y% [ PMOM_close_output_file $mom_output_file_full_name9 z# X, ]+ L. n: k) C, [+ b+ O
( W2 Q8 l: V) M4 C4 U
set renamed_file $mom_output_file_directory$mom_group_name.$mom_output_file_suffix
( ]5 K7 S8 o3 `6 w! C# x1 o. z! a! G/ l+ j- g
if {[file exists $renamed_file]} {4 h0 i! J6 x" N' h
MOM_remove_file $renamed_file+ F2 H; S/ K+ `, p: N9 J
}" k5 N1 |, R1 p
# d4 F) x' V- [/ G7 V, g3 k: K
file rename $mom_output_file_full_name $renamed_file |
|