I have a script that checks the content of a file(text.txt) every 30 minutes, the contents of this file (8 digit random number) should change every 30 minutes. The script checks the contents against the last check and alerts if the content is the same. Rather than send an alert each time is...
I am trying to write a script that reads a txt file, searches for branch=xxx (xxx= any 3 digit number) and replaces the line with branch=yyy) yyy=input variable.
the script below appends yyy onto xxx rather than replace - any ideas.
Test.123 is a text file that contains the text BRANCH=123...
Does anyone have a script that can read the DHCP info from a PC and change to be a static address. I am trying to remove DHCP from certain sites and want to make the visit as easy as possible.
Hi I need to test the download speed we are getting between two systems. We have some sites that are complaining about poor performance. I need a web page that can run from one of our web servers that will time the upload/download speed they are getting. Any Ideas where I can get such a page.
I need my script to quit after it writes to the log file, otherwise it will find the 2nd file and write that 2 files exist. The script should only quit if it meets the if statement. Shouldn't it?
Below is a snippet of my vbscript that check to see if a file(s) exists via a variable and writes to a log file if the file(s) exists. If I enter the parameters as per the labels below in the fso line, it works fine, however if I enter them as below is does not seem to pickup from the labels...
Thanks Guys,
My OP will always be 1, could not get the Function to work, kept saying missing ")" on the public function line.
Used instr which works fine.
Thanks again Guys.
What is the IsNumeric equivalent to my command below to check that a character a-z has been entered.
if len(branchid)=3 and IsNumeric(branchid) then exit do
Thanks
I have a script that shells out to the command prompt to run a process called lrep_reader.exe. How get my script to loop until this process is complete then continue with the rest of my script. My script currently checks to see is a file is increasing, however some hardwasre can't keepup and...
My script below checks the status of a file creation and reports the size every few seconds. The file is named bxxxsr01.0, however my application creates a second and maybe third file if the file exceeds 2gb. I need to get my script to loop until all the bxxxxsr01.x have been reported on and...
I have come across an issue with my script. The program that creates my file will create a second file with .1 extension once the first file reaches 2gb. How can I get my script to look if the .1 file exists before exiting and if it does exist, I want it to add the two file sizes together...
Which bit is wrong, Just cut and paste line from my script, which does write the line in an explorer screen.
objDocument.WriteLn("<html></body>File Size so far =" & (objFile.Size) & " bytes <br>")
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.