Re: copy and move files



On Mar 29, 8:31 am, "Fluid" <bernardini.chi...@xxxxxxxxx> wrote:
On 29 Mar, 13:24, Gib Bogle <b...@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Fluid wrote:
Hi, i need help.i am a quite new user of fortran. I would like to
rename a file (used as input file) and move it to another directory.
Which command can I use?
thanks

If you tell us the compiler you're using, someone will be able to
explain how to invoke system commands.

I'm working on PC, using Compaq visual fortran.

CVF uses "SYSTEM" to send a command to the OS shell. Alternatively,
there are the necessary interfaces and data structures to the
underlying Win32 API routines CopyFile or MoveFile defined in the
KERNEL32 module supplied as one other alternative. Of course, this is
also compiler- and OS-specific so the ususal caveats apply...

.



Relevant Pages

  • Re: simplest method for renaming files / Windows ?
    ... rename the new files to the original ones with another Perl script ... Open input file for reading. ... (Can't do this with Windows.) ... Repeat for all files specified on the command line. ...
    (comp.lang.perl.misc)
  • Re: cmd problem
    ... Panel>add/remove programs/add utilities from my XP disk. ... Try this command, but change the X: ... Can't open input file: filename. ...
    (microsoft.public.windowsxp.basics)
  • Re: findstr, for, or other command to do this?
    ... >> thoughout the file. ... >> command gets me close but its not a unique list. ... > Input file in.txt: ... > REM Parse thru the sorted temp file and compare each ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: copy and move files
    ... rename a file (used as input file) and move it to another directory. ... explain how to invoke system commands. ... CVF uses "SYSTEM" to send a command to the OS shell. ...
    (comp.lang.fortran)
  • Re: Nero AAC encoder front-end
    ... I think this is actually an issue with Nero and Windows ME, ... I can't seem to get it to work from the command line either, ... You could try some older Nero encoder and decoder files if the ... I even put the executable in the same folder as the input file 003.wav ...
    (alt.radio.digital)