I am trying to write a script that will do several things one of which is rename some files with the original name plus the date and time. I have looked at other posts on how to do this and believe my code to be exactly the same as some of those. I keep getting an error, "path not...
Everyone,
Thank you for your responses. I finally have it figured out. infinetelo - your response was key.
The last issue I had was just in the way I had my path's laid out.
Here is the final working code, there are other things I have to add for error trapping, etc., but this was the thing I...
infinitelo, Thank you. It took me a little while to understand what you were telling me.
I am much closer now, at least I feel like I'm on the right track.
Here's what I have now.
DATE2 = DateAdd("d", -2, Date)
'
Set FSO = CreateObject ("Scripting.FileSystemObject")
Set...
Here is what I have so far. The problem is with the MoveFile statement. How do I match up the first 3 characters of the filename to the correct first 3 characters of the folder name, then move the file there.
Again, thanks for all help in advance.
Option Explicit
DATE2 =...
Sorry, I should have mentioned this in the original post.
The folder names change. We store 100 files, then go to the next number (a number our system creates). So you fill folder name "345000" with file names "345000 - 345999"
I am trying to create a script that will check the date created of a file, then move it to a specific folder based on that file name, if it is so old.
Example
Folders: 345000, 346000, 347000
Files: 345678, 346898, 345123
The files beginning with the same first 3 characters would go to that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.