problem with FileCopy function

M

mezzanine1974

I have a problem with FileCopy function.

I need to copy several PDF files from original folder into another
folder and change the name of files.

I expect following -statement1- to copy"102 SPI.pdf" file from its
original location ("\\mer_rus_1\tenderdata$\REQUESTS\AON 34\04.02.08\)
into (\\mer_rus_1\Everybody\_INVOICE_\DATA_INVOICE\Aon) folder as
"Aon__SiteNo: 102__(1809).pdf"

When i execute, i can see only that file "Aon__SiteNo", insted of
"Aon__SiteNo: 102__(1809).pdf". It means anything because there is no
PDF extension.


//statement1-

FileCopy "\\mer_rus_1\tenderdata$\REQUESTS\AON 34\04.02.08\102
SPI.pdf", "\\mer_rus_1\Everybody\_INVOICE_\DATA_INVOICE\Aon
\Aon__SiteNo: 102__(1809).pdf"

Do you have any idea please?
 
M

mezzanine1974

Oh sorry!!
"Aon__SiteNo: 102__(1809).pdf" consist of ":" which violates windows
file name rules.

When I try this, it works

FileCopy "\\mer_rus_1\tenderdata$\REQUESTS\AON 34\04.02.08\102
SPI.pdf", "\\mer_rus_1\Everybody\_INVOICE_\DATA_INVOICE\Aon
\Aon__SiteNo 102__(1809).pdf"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top