I'm still somewhat new to C# and could really use some help on how to start out writing a routine when trying to pull out and concatenate strings.
We have numerous software distributions that store huge log files on a share. Some log file sizes are very small, like 24 kb, and others can be as large as 2 Gig.
I believe I would use the System.IO Class to help me do this.
If you look at one of the tidbits of data written below in the "Attach Code Snippet" window, I'm trying to figure out how to write a routine that accesses the filename = "MCAFEE.DLP_VSXP2K_EPE_I^2
log" and then have it strip out specific words and create an Short error message.
Example for below would be:
If "Current software package status = 'ICE--E' And "Operation" = 'unsuccessful'
And "DISSE0198I User program exit" = '0' And "AcceptPackage.exe" And "DISSE0442I Execution of user program 'during_install" And "failed" Then
/* Based on items in search, create a Short Error message */
ShrtErrorMsg = "Application install failed wscript.exe execution"
"Write some other error message based on conditions".
Thanks in advance for your help experts.
Software Package: "MCAFEE.DLP_VSXP2K_EPE_I^22.214.171.124.1"
Mode: not-transactional,not-undoable | force
Time: 2008-08-20 22:16:45
Log File: rtxinv00:/banktools/rtxinv00/tivoli/logs/sd4/MCAFEE.DLP_VSXP2K_EPE_I^126.96.36.199.1.log
DISSE0155I Distribution ID: `1380625589.289673'
DISSE0029I Current software package status is 'IC--E'.
DISSE0005E Operation unsuccessful.
DISSE0442I Execution of user program 'during_install - C:\WINNT\system32\wscript.exe ('C:\Program Files\Bank of America\Utilities\Temp_PreInstallCheck\PreInstallCheck.vbs' /i /verbose "/package:McAfee DLP" "/version:188.8.131.52" "/build:1" "/owner:EPE")' completed with result: 'success'.
DISSE0198I User program exit code: 0
DISSE0197E Execution of user program 'during_install - C:\Program Files\Bank of America\Utilities\Temp_UtilsDir\AcceptPackage.exe (/t:5 /MD:1 "/PN:MCAFEE.DLP_VSXP2K_EPE_I^184.108.40.206.1" "/PD:McAfee DLP 220.127.116.11 Build 1 Install" "/MM:\cr** McAfee DLP 18.104.22.168 Build 1 Install **\n\nInstallation will now begin.\n\nYour computer WILL REBOOT upon completion.\n\nPlease SAVE your work and CLOSE any open applications.\n\nEstimated installation time is approximately 15 minutes.\n\nThank You." "/AM:** McAfee DLP 22.214.171.124 Build 1 Install **\n\n\cbThis package WILL REBOOT your workstation upon successful completion.\cl\n\nEstimated installation time is approximately 15 minutes.\n\nTo receive this update now, SAVE your work, CLOSE all open applications and click 'Install'.\n\nTo receive this update later, click 'Defer'. If you defer the update, it may become mandatory at the next attempt.\n\nThank you.")' failed.
DISSE0198I User program exit code: 1