Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now
myfile1 = "C:\myfile_s.txt"
myfile2 = "C:\Newfile_" & Year(Date) & Right("0" & Month(Date),2) & Right("0" & Day(Date),2) & ".txt"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists(myfile1) = true then
If fso.FileExists(myfile2) = true then
fso.MoveFile myfile1, myfile2
Set FSO = Nothing
Open in new window
Get your personalized solution.
Please provide your email to receive a free trial preview!
*This site is protected by reCAPTCHA and the Google
Terms of Service apply.
Please enter a first name
Please enter a last name
8+ characters (letters, numbers, and a symbol)
Take hold of your future.