Hi

I'm trying to copy a file from a source to a destination, but whatever I
try, I get error 52 bad filename or Number. I use Filecopy and a generated
string as destination, here's an example:

Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
Destination = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"

FileCopy SourceFile, DestinationFile


Can anyone tell me what I'm doing wrong here?


Thanks

Re: FileCopy Error 52 Bad FileName or number by Dave

Dave
Thu Jul 03 10:28:27 CDT 2003

Hi Marco,

You haven't defined the SourceFile or DestinationFile parameters that you
use for the FileCopy statement.

Try the following:

SourceFile = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
DestinationFile = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"

FileCopy SourceFile, DestinationFile


HTH


"Marco Alting" <marco@alting-multimedia.nl> wrote in message
news:KFXMa.133599$gs1.8136238@amsnews03.chello.com...
> Hi
>
> I'm trying to copy a file from a source to a destination, but whatever I
> try, I get error 52 bad filename or Number. I use Filecopy and a generated
> string as destination, here's an example:
>
> Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> Destination = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
>
> FileCopy SourceFile, DestinationFile
>
>
> Can anyone tell me what I'm doing wrong here?
>
>
> Thanks
>
>



Re: FileCopy Error 52 Bad FileName or number by Marco

Marco
Thu Jul 03 12:20:11 CDT 2003

Dave

I did difine the SourceFile and DestinationFile in the two lines above the
FileCopy line

Marco
"Dave Lett" <dlett@NOSPAMmenusoft.com> schreef in bericht
news:%23ZRgXdXQDHA.2128@TK2MSFTNGP12.phx.gbl...
> Hi Marco,
>
> You haven't defined the SourceFile or DestinationFile parameters that you
> use for the FileCopy statement.
>
> Try the following:
>
> SourceFile = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> DestinationFile =
"D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
>
> FileCopy SourceFile, DestinationFile
>
>
> HTH
>
>
> "Marco Alting" <marco@alting-multimedia.nl> wrote in message
> news:KFXMa.133599$gs1.8136238@amsnews03.chello.com...
> > Hi
> >
> > I'm trying to copy a file from a source to a destination, but whatever I
> > try, I get error 52 bad filename or Number. I use Filecopy and a
generated
> > string as destination, here's an example:
> >
> > Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> > Destination = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> >
> > FileCopy SourceFile, DestinationFile
> >
> >
> > Can anyone tell me what I'm doing wrong here?
> >
> >
> > Thanks
> >
> >
>
>



Re: FileCopy Error 52 Bad FileName or number by Dave

Dave
Thu Jul 03 13:22:45 CDT 2003

Hi Marco,

Was the sample code you provided an exact copy? In the code you provided

Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
Destination = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
FileCopy SourceFile, DestinationFile

you defined Source and Destination, but not SourceFile and DestinationFile.

If the sample code you provided is not an exact copy, can you provide one?

HTH

"Marco Alting" <marco@alting-multimedia.nl> wrote in message
news:fBZMa.136480$gs1.8363760@amsnews03.chello.com...
> Dave
>
> I did difine the SourceFile and DestinationFile in the two lines above the
> FileCopy line
>
> Marco
> "Dave Lett" <dlett@NOSPAMmenusoft.com> schreef in bericht
> news:%23ZRgXdXQDHA.2128@TK2MSFTNGP12.phx.gbl...
> > Hi Marco,
> >
> > You haven't defined the SourceFile or DestinationFile parameters that
you
> > use for the FileCopy statement.
> >
> > Try the following:
> >
> > SourceFile = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> > DestinationFile =
> "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> >
> > FileCopy SourceFile, DestinationFile
> >
> >
> > HTH
> >
> >
> > "Marco Alting" <marco@alting-multimedia.nl> wrote in message
> > news:KFXMa.133599$gs1.8136238@amsnews03.chello.com...
> > > Hi
> > >
> > > I'm trying to copy a file from a source to a destination, but whatever
I
> > > try, I get error 52 bad filename or Number. I use Filecopy and a
> generated
> > > string as destination, here's an example:
> > >
> > > Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> > > Destination =
"D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> > >
> > > FileCopy SourceFile, DestinationFile
> > >
> > >
> > > Can anyone tell me what I'm doing wrong here?
> > >
> > >
> > > Thanks
> > >
> > >
> >
> >
>
>



Re: FileCopy Error 52 Bad FileName or number by Marco

Marco
Fri Jul 04 08:24:11 CDT 2003

Hi Dave,

I misspelled my code in the example, it should be like this:

SourceFile = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
DestinationFile = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
FileCopy SourceFile, DestinationFile


"Dave Lett" <dlett@NOSPAMmenusoft.com> schreef in bericht
news:eU5Hv%23YQDHA.2476@TK2MSFTNGP10.phx.gbl...
> Hi Marco,
>
> Was the sample code you provided an exact copy? In the code you provided
>
> Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> Destination = "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> FileCopy SourceFile, DestinationFile
>
> you defined Source and Destination, but not SourceFile and
DestinationFile.
>
> If the sample code you provided is not an exact copy, can you provide one?
>
> HTH
>
> "Marco Alting" <marco@alting-multimedia.nl> wrote in message
> news:fBZMa.136480$gs1.8363760@amsnews03.chello.com...
> > Dave
> >
> > I did difine the SourceFile and DestinationFile in the two lines above
the
> > FileCopy line
> >
> > Marco
> > "Dave Lett" <dlett@NOSPAMmenusoft.com> schreef in bericht
> > news:%23ZRgXdXQDHA.2128@TK2MSFTNGP12.phx.gbl...
> > > Hi Marco,
> > >
> > > You haven't defined the SourceFile or DestinationFile parameters that
> you
> > > use for the FileCopy statement.
> > >
> > > Try the following:
> > >
> > > SourceFile = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> > > DestinationFile =
> > "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> > >
> > > FileCopy SourceFile, DestinationFile
> > >
> > >
> > > HTH
> > >
> > >
> > > "Marco Alting" <marco@alting-multimedia.nl> wrote in message
> > > news:KFXMa.133599$gs1.8136238@amsnews03.chello.com...
> > > > Hi
> > > >
> > > > I'm trying to copy a file from a source to a destination, but
whatever
> I
> > > > try, I get error 52 bad filename or Number. I use Filecopy and a
> > generated
> > > > string as destination, here's an example:
> > > >
> > > > Source = "D:\Projecten\Shell\SPDC\EDMS\test.txt"
> > > > Destination =
> "D:\Projecten\Shell\SPDC\EDMS\test\DEE\DMP\CodeB\test.txt"
> > > >
> > > > FileCopy SourceFile, DestinationFile
> > > >
> > > >
> > > > Can anyone tell me what I'm doing wrong here?
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > >
> > >
> >
> >
>
>