Compare-Object Paramater

Author Message
mcds99

  • Total Posts : 519
  • Scores: 4
  • Reward points : 0
  • Joined: 2/28/2006
  • Status: offline
Compare-Object Paramater Tuesday, April 20, 2010 4:27 AM (permalink)
0
I'm trying to figure out what the -SyncWindow paramater of Compare_Object really does
     "Defines a search region in which an attempt is made to re-synchronize the order if there is no match."
I'm thick on this one I can't pull out of the definition, what it does?
 
I'm writing a PS script that keeps a (process eye) on a folder, it will wait for 3 minutes and check to see if a file has changed, if it has not changed in 3 minutes then it will be moved to another folder where it will be picked up by another process.
We get files transfered to a specific folded (text files) from a main frame they take a while to down load.
 
I may be going down the wrong cmd_ let path even.
Sam

Keep it Simple Make it Fun KiSMiF
 
#1
    ebgreen

    • Total Posts : 8219
    • Scores: 98
    • Reward points : 0
    • Joined: 7/12/2005
    • Status: offline
    Re:Compare-Object Paramater Tuesday, April 20, 2010 4:29 AM (permalink)
    0
    Personally I would either look at the last modified time or use an MD5 hash to see if it is the same as it was the last time that you looked.
    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
    http://www.visualbasicscript.com/m_47117/tm.htm
     
    #2
      TomRiddle

      • Total Posts : 620
      • Scores: 12
      • Reward points : 0
      • Joined: 2/7/2008
      • Location: Australia
      • Status: offline
      Re:Compare-Object Paramater Thursday, July 29, 2010 3:36 PM (permalink)
      0
      Looks like the online version of the help is the same
      PS C:\> get-help Compare-Object -online
      -join([int[]][char[]]'Ut|jwXmjqq%Wzqjx'|%{[char]($_-5)})
       
      #3

        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 1 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2012 ASPPlayground.NET Forum Version 3.9