Changeset 701
- Timestamp:
- Dec 4, 2009 5:10:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsascmds.tcl
- Property rcs:date changed from 2003/04/10 22:13:02 to 2003/05/22 21:43:32
- Property rcs:lines changed from +62 -1 to +20 -6
- Property rcs:rev changed from 1.49 to 1.50
r673 r701 1219 1219 catch { 1220 1220 set file $expnam.O$num 1221 file rename-force $expgui(expfile) $file1221 file copy -force $expgui(expfile) $file 1222 1222 set fp [open $expnam.LST a+] 1223 1223 puts $fp "\n----------------------------------------------" … … 1348 1348 set newfile [tk_getSaveFile -initialfile $suggested -parent $parent] 1349 1349 if {$newfile == ""} return 1350 file rename -force $current $newfile 1350 if {[catch { 1351 file rename -force $current $newfile 1352 }]} { 1353 file copy -force $current $newfile 1354 file delete -force $current 1355 } 1351 1356 if {$window != ""} {destroy $window} 1352 1357 } … … 1358 1363 set root [file root $expgui(expfile)] 1359 1364 catch {file delete -force $root.tmp} 1360 catch {file rename -force $root.LST $root.OLS} 1365 if {[catch {file rename -force $root.LST $root.OLS}]} { 1366 file copy -force $root.LST $root.OLS 1367 file delete -force $root.OLS 1368 } 1361 1369 # PSW reports this does not happen right away on windows 1362 1370 set i 0 … … 1383 1391 catch {exec [file join $expgui(gsasexe) disagl] \ 1384 1392 [file tail $root] < disagl.inp > disagl.out} 1385 catch {file rename -force $root.LST $root.tmp} 1393 if {[catch {file rename -force $root.LST $root.tmp}]} { 1394 file copy -force $root.LST $root.tmp 1395 file delete -force $root.LST 1396 } 1386 1397 catch {file delete -force disagl.inp disagl.out} 1387 catch {file rename -force $root.OLS $root.LST} 1398 if {[catch {file rename -force $root.OLS $root.LST}]} { 1399 file copy -force $root.OLS $root.LST 1400 file delete -force $root.OLS 1401 } 1388 1402 donewait 1389 1403 # open a new window
Note: See TracChangeset
for help on using the changeset viewer.