'========================================================================================================
'========================================================================================================
' ### Script: trim.vbs
' ### ScriptVersion: 0
' ### Created: 04/04/04
' ### Contact: Tim Chovanak, timc@blackpondfarm.com
' ### Description: Trims duplicate lines out of any file
'========================================================================================================
'========================================================================================================
Option explicit
On error resume next
Dim wshNetwork,wshShell,wshFile
Dim objDictionary,ItemsArray,KeysArray,ArrayItems,i
Dim objArgs
Dim strinputFile
Dim stroutputFile
Dim objFolder
Dim strPath
Set Wshnetwork = wscript.CreateObject("Wscript.Network")
Set Wshshell = wscript.CreateObject("Wscript.shell")
Set Wshfile = wscript.CreateObject("Scripting.FileSystemObject")
'Make sure the host is cscript, IF not THEN set default to cscript
IF instr(1, wscript.fullname, "cscript.exe", 1) = 0 THEN VerifyCscript()
'Read our command line arguments, proceed if we have the correct input or print help if we don't.
Set objArgs = WScript.Arguments
If objArgs.Count <> 2 Then
wscript.echo "Usage: trim.vbs