Login | |
|
 |
RE: VBScript to write files to xml - 11/23/2005 8:23:21 PM
|
|
 |
|
| |
ptaz
Posts: 13
Score: 0
Joined: 11/18/2005
Status: offline
|
Yes it is sort off Thank you. How do I get the actual Filename to be inserted. (For example. File.Name will give you the name corp_aug_05.pdf, corp1_sept_o5.pdf) Using the script you created. So if the file is corp_aug_05 it would display Corporate, for corp1 it would display Corporate One, etc. Hence just taking the first few string in the filename. For Each File In myFolder.Files FileLast = File.DateCreated FileMod = DateDiff("d", FileLast, Now) If FileMod < 5 Then Corporate = File.Name ' I would like the filename to appear here. myDate = Split(FileLast,"/") myYear = Left(myDate(2),4) myMonth = myDate(0) myURL = "documents/" & Corporate Download = "Download" Call pstrXML(Corporate,myYear,myMonth,myURL,Download)
< Message edited by ptaz -- 11/24/2005 1:10:40 AM >
|
|
| |
|
|
|
|
|