Working with files

  • Thread starter Thread starter Nigel
  • Start date Start date
N

Nigel

I have a file that is created and then transferred via ftp
to a web site. Once the file is created I would like to
move it from its current position into a sent folder.

What commands would I use that would copy it from folder a
to folder b

something like cut c:\orders\filename.txt to
c:\orders\sent\filename.txt

thanks in advance

Nigel
 
"Nigel" said:
I have a file that is created and then transferred via ftp
to a web site. Once the file is created I would like to
move it from its current position into a sent folder.

What commands would I use that would copy it from folder a
to folder b

something like cut c:\orders\filename.txt to
c:\orders\sent\filename.txt

thanks in advance

Nigel

Nigel

You can use the Name statement to do this:

Name "C:\Orders\Filename.txt" As "C:\Orders\Sent\FileName.txt"
 
-----Original Message-----
I have a file that is created and then transferred via ftp
to a web site. Once the file is created I would like to
move it from its current position into a sent folder.

What commands would I use that would copy it from folder a
to folder b

something like cut c:\orders\filename.txt to
c:\orders\sent\filename.txt

thanks in advance

Nigel
.


Try the built-in function FileCopy:

FileCopy(Source As String, Destination As String)

There's enough in the Help files about it.


Damien
 
Back
Top