Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mninawa

@Mninawa
About
Posts
6
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Connectivity in South Africa
    M Mninawa

    Hi Phil I Live in South Africa,Cape Town and currently im using nokia E72. My connectivity is MTN and CellC. My best recommendation MTN-3G,they have Data Bundles which don't cost that much depending on your consumption.The reason is MTN-3G is very fast and im happy with it. I Hope this help. M.Paige

    The Lounge android sysadmin discussion

  • Checking file longer than 1 hour
    M Mninawa

    Hello Everyone I need someone who can help me.I want to check the oldest file in the directory, and if that file is older than one hour then send an alert. Here is my current work.

           for (int index = 0; index < files.Length; index++)//Loop through the file.
            {
                string lastMTime = File.GetLastAccessTime(files\[index\]).ToString("ddMMyyymmss");//Get the last modified file by date.
                files\[index\] = lastMTime + files\[index\];//Shuffle the array
            }
            Array.Sort(files);//Sort the array
            string oldFile = Path.GetFileName(files\[0\].Substring(15));//Get the old file.
            if(File.GetCreationTime(oldFile))//  this is where i am stuck.....
    

    if(File.GetCreationTime(oldFile))// this is where i am stuck..... Please my code project peeps, help me out.... Thank you all in Advance Marvel...

    C# help database data-structures

  • Regex for MM/YYYY date format
    M Mninawa

    Thanx Buddy you have saved my day. Mninawa

    C# regex help

  • Regex for MM/YYYY date format
    M Mninawa

    Hi Guys, Can someone help me,i need help with Regex.I want to validate a date in this format MM/YYYY,thus 02/2009, Regards Mninawa

    C# regex help

  • Executing Java Object in C#
    M Mninawa

    Hi Steve,thanx for your help. On that not you are quite right,In the documentations for JVM,this is how you would execute .jar file,but now what i have is the combination of libraries,which makes up an application caller,which is that cmdParam, well i have to find a way to execute them in C# and I thought using this way would solve the problem. I thought one might have a solution besides the one in did,because i have to do them that way. Mninawa

    C# csharp java database tutorial question

  • Executing Java Object in C#
    M Mninawa

    I have this task, i need to call a Java Application using a web-service call.I need to know if someone has a clue on how to do that,so far this is my attempt.

    string cmd ="C:\Program Files\Java\jre1.6.0\bin\Java.exe";
    //We use this command to invoke or start the java application which take argument infront.

    string cmdParams="java -Xms32m -Xmx1g -Djava.library.path=d:\cep\col\sql -classpath d:\cep\col\commons-net-1.4.1.jar;d:\cep\col\commons-codec-1.3.jar;d:\cep\col\sql\sqljdbc.jar;d:\cep\col\DialogInput.jar za.co.lightWave.control.DialogInputControl";

    using (Process process = Process.Start(new ProcessStartInfo(cmd, cmdParams)))
    {

                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.RedirectStandardError= true;
    
                process.StartInfo.UseShellExecute = false;
                process.StartInfo.RedirectStandardOutput = true;
                process.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
    
                process.Start();
    
                process.WaitForExit(timeout);
                return process.ExitCode;
            }
    

    I need to know what is an effective way of executing that command,what i have currently is

    java.lang.NoClassDefFoundError: java Exception in thread "main"

    Thank you in advance Mninawa

    C# csharp java database tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups