Im looking to write a vbscript that will grab some data out of an html report. I want to grab a particular line and the next preceding 5 lines.
The html report looks like this:
blah blah
blah blah
blah blah
<td valign="top" align="middle"><font face="verdana" size="2">0</td>
<td valign="top"...
We are running exchange 2003 stnd. in our company. I have a question I was hoping to have some help answering.
Here goes:
A user gets a daily email from a news agency with a 2MB attachement. Everyday, he forwards that message to his secretary for printing and then deletes it. So he has a copy...
The final product.. Thanks PHV for you help!!
*********************************************************
'Set Global Variables
daysold = InputBox ("Number of days back you want HAM_MEDIC to look? "& (chr(13)) &" "& (chr(13)) &" Example: 10, 15, 30", "HAM_MEDIC Script - by TM")
fileext =...
I have an input box where a user enters a number. I then want that variable to be put into the dtmOld variable but I keep messing up the syntax. Can someone help? I've tried mutiple combinations. This is one of them.
daysold = InputBox ("What is the number of days you want the script to look...
OK, I completely switched it up and I think I got it working. Well almost....
********************************************
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("T:\ideas_LIC_FIX")
dtmOld = DateAdd("d", -30, Now)
AllFolders(objFolder)
runHM...
OK, looks like my query is what needs to be changed to include the path and restriction to just .mdf files. But I'm banging my head against the wall with errors..
To recap, Im trying to get the query to search a directory for all .mdf files created after a certain date that has been inputed...
I have been trying to write a script that will run this command for each file created after a certain date:
For example: (In logical terms)
MONTH=(xx)
DAY=(xx)
YEAR=(xxxx)
For each <filename> in y:\<dir1>\<dir2> with the extension .mdf newer then xx/xx/xxxx do;
y:\<dir1>\<action>.exe...
I am trying to setup my Sun V880 server running Solaris 8 to talk to my external SAN via fiber cable. I believe I have one internal fiber card (FC) on the motherboard and another on a PCI card. The PCI card has internal ports as well as a set of external ports on the back of the server. Both the...
This is the code that I have. I am just trying to figure out what the reg expression pattern is. I have tried a couple combinations with limited success.
dim s, t, rx, cm, m
set rx=new regexp
with rx
.global=false
.pattern=\(*\)
end with
Const ForReading = 1
Set objFSo =...
I am writing a script that will read each line of a log file and pull out the user name string. The log file is populated with lines like this:
11.111.247.148 - (CN=Blow\\, Joe,CN=Users,DC=CompanyX,DC=com)@(LDAP) [06/May/2008:08:33:23 -0400] "GET...
Question for you guys. what would be the pattern if I just wanted to pull the value between the first set of quotes?
The lines in the log file are scructured like this:
152.15.112.88:1755 ssl "(CN=Hung\,Bart,CN=Users,DC=company,DC=com)@(LDAP)" "15/Apr/2008:10:26:38.779 -0400" v5 connect 13552...
Great!! That worked perfectly. This is what I came up with for the total script.
dim s, t, rx, cm, m
set rx=new regexp
with rx
.global=true
.pattern="""([^""]*?)"""
end with
Const ForReading = 1
Set objFSo = CreateObject("Scripting.FileSystemObject")
strComputer = "."
Set...
I am looking to write a script that will read in a log file line by line, extract the values between the two sets of quotes, output those values to another file then exit. My log file is a number of lines like the following:
152.15.112.88:1755 ssl...
I am trying to deny the ability for our helpdesk to modify users' group memberships. Our helpdesk (group name = 'helpdesk' in AD) can go into AD and modify user accounts in the USERS OU. That 'helpdesk' group in AD have specifically been granted permissions on the USERS OU to 'List Contents'...
Thanks for all you tips guys. When I tried to login the next day I was prompted for a password change. Apparantly the pw had expired. Stupid Me.....
I appreciate everyone's help!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.