When you post your code look just above the top of the text box for the "#" button - click on this and it will insert code tags into the text box. Paste your code between the tags. You can also type them manually, once you know what they look like.

If your workstation names are always the first field in the CSV file, then this will work for you:
 Code:
$sCheckFile="CompHardware.csv"
$sExceptionFile="exceptions.csv"
 
$sTextToFind=@WKSTA
 
$oFSO=CreateObject("Scripting.FileSystemObject")
$oFile=$oFSO.OpenTextFile($sCheckFile, 1, -1)
$sFileData=@CRLF+$oFile.ReadAll
 
If InStr($sFileData,@CRLF+$sTextToFind+",")
	"Yes, '"+$sTextToFind+"' is in the file"+@CRLF
Else
	"No, '"+$sTextToFind+"' is not in the file"+@CRLF
	; Cheap and dirty hack to log exception
	$=RedirectOutput($sExceptionFile)
	$sTextToFind+@CRLF
	$=RedirectOutput("")
EndIF


This will write the missing workstation name to an exception file - of course it will do it every time that the script runs, so you might want to turn the code that checks if a string is in the file into a function and call it once for the main file, and again for the exception file before you write to it.

Note, don't use "GoTo" in your code. There are a very few exceptional occasions when it is the appropriate choice, but you are unlikely to encounter them. If you are using "GoTo" is usually means that you haven't thought about the code flow and decision paths.