User Profile
Collapse
-
Never mind I got it. Took me a bit but the problem I was having was the way I was reading the file. I stopped reading it into a array and then searching and simply split it up as it was being read. -
I got it to work sort of but could not get it to work using a FILEHANDLE. To get my regex correct I simply opened it after assigning a variable to the name of the text file then reading it in. This reads the server name into the hash key and the description as the hash value.
...Code:my %hash = (); my @array; my $file = "servers.txt"; open($file, "<$file"); while (<$file>)
Leave a comment:
-
Thanks for the input. Unfortunately the description can be over multiple lines so that is where I am having my main problems. PERL splits each line of the input file into the array which is what is causing me the most problems. There is a blank line between each description.
I tried your suggestion but it put every word into the array. When I tried removing the chomp operator so I could use whitespace as my end point but this worked...Leave a comment:
-
Help with splitting up a input file.
I have a text file with a list of servers and then a description of the server along with the applications that may be hosted on them. Here is a example
I am trying to open up the file and parse it into an array that will only list the SERVER...Code:SERVER01 SERVER01 Windows Server 2003 RC2. SQL server. Runs blah blah.. blah. and so forth. SERVER02 SERVER02 REDHAT Linux. MAIL etc etc etc
-
-
I verified that I can get each parameter to run separately by trying to run the command with only one parameter as the argument.
This activated the viewer with the plug-inCode:wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe"" -dsmplugin MSRC4Plugin.dsm"
...Code:wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe"" "-listen 5900"
Leave a comment:
-
Actually I spoke to soon. For some reason it does not activate both command parameters only the last one. So it will activate the listen mode but it is not loading the plugin. I cannot get it to activate both listen mode and the plugin.
I first did this as a bat file but the bat file keeps the cmd window open until i turn off listen mode. Here is my bat file.
...Code:@echo on c: cd\ cls cd "c:\Program
Leave a comment:
-
Thanks for the input. i figured it out by seprating the exe from the parameters.
A good littl tidbit i wont forgetCode:wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe"" -dsmplugin MSRC4Plugin.dsm -listen 5900"
Leave a comment:
-
Running a EXE with parameters from script
I am trying to run a exe with parameters from a VB script. I tried writing it using a bat file but it does not close the dos prompt window so I am trying to rewrite it using VB script. It works if I do not specify any parameters for the exe to run. But i need it to run with the parameters. Not sure how to get it to run with the parameters. I need it to execute the exe then close the script. Here is my script.
...Code:strComputer
-
Radio Button question
This is a really bad question but I am not familiar with VB. I have three radio buttons in a group box. I want to have it that by default none are checked. I set the checked property on all three to false yet the first one is always checked even if I set it to false. i even tried removing the group box but always one of the boxes is checked. How can I default it to no boxes checked? -
I figured it out. It was an improper call. I used my original method. Not sure why your way would skip. Thanks for the help.Leave a comment:
-
That worked great except it is only pulling down my second and 4th value from the stored procedure. Hm thats weird not sure why it would skip the 1st and third values....Leave a comment:
-
I have 4 values in that row. I want to populate those values into the ComboBox. Right now it is not populating anything. I have tried adding those values to an array and then using the .add to add it but still nothing. Any ideas?Leave a comment:
-
Populating my Combo Box from Access DB
I am having a problem with populating a combo box from a Access DB, I am calling a stored procedure that executes with one row of values. i want to populate those values into my combo box but right now the combo box will not populate. here is my code.
...Code:private void GetProductColors() { try { if (oleDbConnection1.State != ConnectionState.Open) -
I am trying to change the font style of a label, when the user selects a font it automatically switches the label to the choice in the combo box. I.E from San Serif to Tahoma. There are other options like point and bold or Italic but I cannot figure out how to change the Font Style without specifying the current size.Leave a comment:
-
Change Font Family C#
I have a combo box with a selection of fonts you can choose from. But I cannot figure out how to switch the fonts without selecting size and other options. I want to simply change the family while leaving everything else as is.
this.myFont.fon t = new Font(FontFamily .GenericSerif,1 2,FontStyle.Ita lic)
This is the only way I have been able to do it but since I have other controls that change style and size I do not want... -
Comparing Matrix's C++
I am trying to find our how I would compare two matrix's.
I have two matrix and I want to find out if they are equal, less or greater than.
I created a double loop to loop through and compare an individual element.
...Code:for(int row = 0; row < Number; row++) { for (int col = 0; col < Number; col++) { if(a.matrix[row][col] == b.matrix[row][col]; }
No activity results to display
Show More
Leave a comment: