User Profile

Collapse

Profile Sidebar

Collapse
blazted
blazted
Last Activity: Mar 19 '08, 02:45 AM
Joined: Mar 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • blazted
    replied to Help with splitting up a input file.
    in Perl
    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.
    See more | Go to post

    Leave a comment:


  • blazted
    replied to Help with splitting up a input file.
    in Perl
    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>)
    ...
    See more | Go to post

    Leave a comment:


  • blazted
    replied to Help with splitting up a input file.
    in Perl
    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...
    See more | Go to post

    Leave a comment:


  • blazted
    started a topic Help with splitting up a input file.
    in Perl

    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

    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 am trying to open up the file and parse it into an array that will only list the SERVER...
    See more | Go to post

  • Any one have any more suggestions on this?
    See more | Go to post

    Leave a comment:


  • I verified that I can get each parameter to run separately by trying to run the command with only one parameter as the argument.

    Code:
    wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe"" -dsmplugin MSRC4Plugin.dsm"
    This activated the viewer with the plug-in

    Code:
    wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe""  "-listen 5900"
    ...
    See more | Go to post

    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
    ...
    See more | Go to post

    Leave a comment:


  • Thanks for the input. i figured it out by seprating the exe from the parameters.

    Code:
    wshshell.run """c:\Program Files\UltraVNC\vncviewer.exe"" -dsmplugin MSRC4Plugin.dsm -listen 5900"
    A good littl tidbit i wont forget
    See more | Go to post

    Leave a comment:


  • blazted
    started a topic Running a EXE with parameters from script

    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
    ...
    See more | Go to post

  • blazted
    started a topic Radio Button question

    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?
    See more | Go to post

  • blazted
    replied to Populating my Combo Box from Access DB
    in .NET
    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.
    See more | Go to post

    Leave a comment:


  • blazted
    replied to Populating my Combo Box from Access DB
    in .NET
    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....
    See more | Go to post

    Leave a comment:


  • blazted
    replied to Populating my Combo Box from Access DB
    in .NET
    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?
    See more | Go to post

    Leave a comment:


  • blazted
    started a topic Populating my Combo Box from Access DB
    in .NET

    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)
    ...
    See more | Go to post

  • blazted
    replied to Change Font Family C#
    in .NET
    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.
    See more | Go to post

    Leave a comment:


  • blazted
    started a topic Change Font Family C#
    in .NET

    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...
    See more | Go to post

  • blazted
    started a topic Comparing Matrix's C++
    in C

    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];
        }
    ...
    See more | Go to post
No activity results to display
Show More
Working...