I happened to do the same testing on the command line & found that the matching is working too, so it must have been the way or where in the script I was doing the replace. I've managed to overcome this now by writing out the file & then doing the replace & outputting that using set-content. I...
I have a script that uses convertToHtml, which all works fine, except it produces multiple table headers due to the way I'm looping through a list of server names. I'm trying to tidy this up if only the replace procedure would play nicely. Instead it seems to fail matching the string that I...
Never mind. I found an alternate script that I managed to merge with this one to do what I needed to do. I had to use the System.Net.WebRequest method as the invoke-webrequest was producing a HTTP status of 0 despite the sites being accessible (it worked fine on my local machine, but had...
Hi,
The script below is successfully checking a list of wsdls & was outputting to the console the correct status. However I've tried converting the output to HTML, but the output from the $body variable is blank (I'm guessing this is because it's not an object), but I don't know how to make it...
Thanks. I hadn't really noticed the seperator length issue as my maximum line length wasn't constrained, so it sort of looking right was fine for what I needed. However I do both appreciate you both taking the time to look at this & provide a fully working solution.
I did correct the script...
I did notice something was a little off - & that would explain it. Anyway, corrected script below:
if len(mylongstring) > maxlinelength Then
mylongstring_arr = split(mylongstring,",")
LineString = ""
for x = 0 to ubound(mylongstring_arr)
If len(LineString & "," & mylongstring_arr(x)) <=...
Hi,
I have a list of comma separated items, but only have a limited line length (aprox 50 chars) to display them. If I split them at the comma, I'll end up with a long list of items. What I'd like to to is fit as many as I can on each line. In essence I'd like to loop through the string &...
I think I've found it. (well it appears to work - will see what happens when the clocks go back)!
var lm_hour = ('0' + lastmod.getHours()-(lastmod.getTimezoneOffset() /60))).slice(-2);
....
//var currentDateTime = new Date();
//currentTimeIncTimezone =...
Hi,
I have some javascript below that reports the time since the html file was generated. This was all working fine until DST, where it started showing the Last Updated time as an hour behind the actual time.
I believe I understand the concept of javascript time (i.e. milliseconds since 1...
Apologies, that was childish.
I ended up opting to use an alternative script, which worked as I wanted it to.
I understand the KISS principle, but was eager to learn how the original code could be corrected, even if it was the wrong & most impractical way to achieve what I was attempting.
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.