Hallo;
Is there a Fortran procedure to move a file from one location to another?
The locations will be on different devices, such as C: and H:
Eric[/i]
Welcome to our forums
Hallo;
Is there a Fortran procedure to move a file from one location to another?
The locations will be on different devices, such as C: and H:
Eric[/i]
Eric, Suppose you have file a.for and disk H. Then try this
integer*2
character*64 text
text = 'ren a.for H:\a.for'
call cissue@(text,ierr)
if(ierr.gt.0) print*, 'Error=', ierr
end
There is also an FTN95 library routine...
SUBROUTINE RENAME@(FILE1, FILE2, ERROR_CODE)
CHARACTER (LEN=*) FILE1, FILE2
INTEGER (KIND=2) ERROR_CODE
Paul,
Does that work across drives?
Eddie
Edit: (As I was too busy earlier this morning to try it. The answer is 'Yes, it does'. Hence it is a MOVE as well as a RENAME).