I'm current running a VB script to archive and clear the Event Log on each of my servers. I must use Winzip because of licensing. I would like to use VB so i can tack it on to the end of my current archive script, rather than running a second .bat of .cmd file.
Event logs are saved to a specific folder as:
What could i add to the end of the script to Package these file into a single Zip file as ServerName_Date.zip
You could take the zipfile name from your .evt -file. use a replace to make the .evt to .zip
fileName = "ServerName_Sys_Date.evt"
fileName = Replace(fileName ,"_Sys","")
fileName = Replace(fileName
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code.