Jump to content

roystony01

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About roystony01

  • Rank
    Newbie
  1. Hi All, I have this script to delete files with a certain name older than x days. The script works ok, except that it wont run through the 7 file names consecutively. Currently if I run the script, it will delete the file beginning with ARBDWeek1. Then if I run it again, it will delete the older files for ARBEWeek2 etc. I need to add some script so that it will search for all the files listed so I can run a batch file to execute in the future Thanks On Error Resume Next Set fso = CreateObject("Scripting.FileSystemObject") olddate = DateAdd("d", -3, date) WScript.StdOut.WriteLine("Today is
  2. Hi All, I am a beginner in writing VBS. I am trying to write a script that will copy a csv file that contains todays date, and move it to another folder, and also rename the file without the date. This is the script I have, there are no errors when I run the script, but nothing actually happens. i have been scratching my head for a few days now. Please note I have changed the folder paths, as these are sensitive and cant be shared publicly, but I am positive there are noe read write issues, and they are written correctly Any help, muchly appreciated. Roy Sub Copy_Files_Dates() Dim FSO
×
×
  • Create New...