Re: error when using FileCopy
From: Jim Edgar (djedgarNOSPAM_at_cox.net)
Date: 12/17/04
- Next message: Timo Kunze: "Re: Context menu handler"
- Previous message: Mike: "error when using FileCopy"
- In reply to: Mike: "error when using FileCopy"
- Next in thread: Bob Butler: "Re: error when using FileCopy"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 14:54:02 -0800
"Mike" <Mike@discussions.microsoft.com> wrote in message
news:1C8A0885-0075-4334-88A2-623089DA96DE@microsoft.com...
> Hello, I'm using VB6, and I'm making an app that reads in a file, writes to
> an output file, and then is supposed to replace the input file with the new
> output file. So I tried using Rename to do that, but my compiler acted like
> Rename didn't exist as a function, and so I tried FileCopy. It recognized it
> as a fuction, but kept giving me an error saying a '=' was expected. The
> line of code that produced the error was:
>
> FileCopy(outName, inName)
>
> Am I missing something?
> --
> Thank you,
> Mike
Try using FileCopy without the paranthesis:
FileCopy outName, inName
Also, you can rename files just use Name:
Name strFile As strRenamedFile
Jim Edgar
- Next message: Timo Kunze: "Re: Context menu handler"
- Previous message: Mike: "error when using FileCopy"
- In reply to: Mike: "error when using FileCopy"
- Next in thread: Bob Butler: "Re: error when using FileCopy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|