Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rkapp2

    LastModifiedDate code

    Thanks tsuji. I just found the syntax here: http://msdn2.microsoft.com/en-us/library/xhtyw595.aspx
  2. rkapp2

    LastModifiedDate code

    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...
  3. rkapp2

    LastModifiedDate code

    Looks like it is working the way I want it to. Thanks for helping a neophyte user.
  4. rkapp2

    LastModifiedDate code

    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...
  5. rkapp2

    LastModifiedDate code

    I need to target the modified date of the file so I can copy it after X many days. I don't see how I can do this using the DateDiff function.
  6. rkapp2

    LastModifiedDate code

    It's not working the way I want it to. I want the SrcFile copied if the DateLastModified is 32 days old.
  7. rkapp2

    LastModifiedDate code

    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 =...
  8. rkapp2

    File search

    Ok, I get it, you know what your talking about. Everything you have given me has worked. Thanks over elaborated one.
  9. rkapp2

    File search

    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"...
  10. rkapp2

    File search

    I omitted an object from the statement below. NotesID = "C:\Lotus\Notes\Data" & strUserName & " .id
  11. rkapp2

    File search

    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 =...
  12. rkapp2

    File search

    I am tring to find a file named "username.id" locally on a PC. Can anyone help me with the syntax? Thanks

Part and Inventory Search

Back
Top