Re: Copy file with multiple names
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 11 Oct 2007 20:16:17 +0200
"Jeff C" <JeffC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:76780D24-C1ED-46D1-B41A-B31D8ACB3114@xxxxxxxxxxxxxxxx
I was finally able to get some mainfraim reports spooled to download to
text
files every morning rather than useing Document Direct. The problem is
that
for every report that comes down every morning there are multiple copies
with
names the same followed by "name.#####.20071011024021.txt" for example.
I have been unsuccessful getting a script to move and rename the file.
So Far:
Dim oFSO
Set oFSO = CreateObject("Scripting.FileSystemObject")
oFSO.CopyFile "Q:\name*.txt","U:\DocDirectReports\name.txt", True
Can anyone assist?
Thanks in advance
--
Jeff C
Live Well .. Be Happy In All You Do
Before you decide HOW to do this, you need to work out
WHAT you want to do. Just renaming the files will not really
work: Sooner or later you will have two of these reports, and
you obviously cannot rename both to the same name. What
now?
.
- Prev by Date: Re: Change file extensions with VBScript
- Next by Date: Re: Spam
- Previous by thread: Script to Remove Attachments in Exchange Mailbox
- Next by thread: Re: Copy file with multiple names
- Index(es):
Relevant Pages
|