I might be able to use stringbuilder, if I know that my file will always have the : on the forth line, can I only replace it with a blank line, and not other lines that contain :, because the another lines have the word cn:, which is correct and not a line that starts with :
static string...
Hello,
I'm trying to find the best way to read and then find specific text within file and then remove it, using StreamWriter.
I have already created the StreamReader, but now need to find out the best way to find : with the file and remove it, then rewrite file.
Thanks,
Mike
Hello,
I have a Cisco 4506 with 2 Uplink Ports.
I already have Uplink port # 1 in use. I would like to add a second floor 4506 switch to my existing infrastructure. Can I add a GBIC in Uplink port 2 and run a fiber cable to the second floor, then plug in to GBIC port # 2 on first floor...
Hello,
How do show a form from a menuStrip1.
I read that I need to create a new instance. But having troubles.
Here is what it looks like.
menuStrip1>Templates>Scanner
I need to call the Scanner form when selecting it from the menuStrip1.
Thanks,
-Mike
Hello,
I have an issue with multiple ip addresses, showing up on our primary dns server.
mydomain is say for testing local.ad
for our HP teaming connection x 3
1 for nic 1
1 for nic 2
1 for HP teaming connection
1 for MS cluster ip address
Only one of these are setup with register this...
sorry for the delay responding. I got assigned to another project, but I'm back at it now.
I will look into all of these suggestions.
Thanks to you both.
Mike
Hello,
I have a weird problem, I have a VPN server that stops working say after 0-60 mins. Users and Admins get the infamous 800 error.
What I do not understand is why does it works great for 60 mins or so then stops working and all that I get is the error 800.
After that all that I can do...
Hello,
I'm using SMS 2003 SP1 and would like to know how to setup the advertisment of Windows Updates to only happen after say 4:00pm and 5:am. So I do not interrupt my users during working hours.
Thanks,
Mike
Hello,
I have this small vbs script that I wanted to know, if there is a way that I can not have the information box popup.
Saying"Are you sure you want to add the information in I:\portable\lanview\lanview.reg to the registry?
Yes or No
I would like to have it overwrite, so I added to my...
Hi dm4ever,
What if I wanted to name the smtpdiagText file with the results2 added.
Like this:
WSHShell.Run "%comspec% /c " & strPath & "smtpdiag" & Space (1) & result1 & Space (1) & result2 & Space (1) & " > smtpdiagTest" & result2 & .txt",0,True
I'm getting an error and I think it has to do...
Hello,
I have two input boxes, with both yes and cancel.
I would like to have the script quit, if the user does not enter any text into the input box or press cancel. Can I do this here is my code so far.
result1 = InputBox(Message1,Title)
result2 = InputBox(Message2,Title)
If result1 = 2...
I figure it out and yesy it was a space issue.
I have one more question.
With using the "%comspec% /c command, is there any way that I can hide this windows at run time.
Thanks for your help.
Mike
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.