I need to compare idFile's and idBFile's modified dates so idFile will be copied after 32 days. I tried....
idFile = oFile.DateLastModified
idBFile = oFile.DateLastModified
If DateDiff ("d", idFile, Now) >=32 DateDiff ("d", idBfile, Now) Then
oFSO.CopyFile NotesID, "C:\NotesBackup\"
End If...
Here is the code I have so far. My code does find the file I want copied. I believe my code gets the date the file was modified but the DateDiff you are helping me out with isn't working correctly, most likely my fault. It copies the file no matter what criteria I put in.
Dim oFSO, oFile...
I'm trying to compare a file's LastModifieDate with another. I'm wanting to copy the file once it's LastModifiedDate reaches 32 days. Here is what I have so for. Any help would be much appreciated.
File1 = "C:\Temp\File1.txt"
File2 = "C:\Temp\File2.txt"
Set oFSO =...
Ok, sorry for the improper follow up.
The information you gave did work. I msgbox NotesID, just to see what the output would be, which I set to "C:\Lotus\Notes\Data" & strUserName & " .id". It displayed the entire statement. I would like to just display the result of & strUserName & " .id"...
Here is what I tried.
Dim oFSO, FSO, NotesID, objNetwork, strUserName
set oFSO = WScript.Createobject ("Scripting.FileSystemObject")
set FSO = CreateObject ("Scripting.FileSystemObject")
set objNetwork = CreateObject ("WScript.Network")
strUserName = objNetwork.UserName
NotesID =...
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.