Tuesday, June 05, 2007

Recently I was trying to run python script using C# code. However, I encountered some issues beginning until I found a way to do the same.

Here is the C# code to run python script:

ProcessStartInfo startInfo;
Process process;
string directory;
string pyArgs;
string script;
//Python program name here
startInfo = new ProcessStartInfo("python");
startInfo.WorkingDirectory = directory;
//Python script path plus arguments
startInfo.Arguments = script + " " + pyArgs;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
process = new Process();
process.StartInfo = startInfo;
process.Start();
string s;
while ((s = process.StandardOutput.ReadLine()) != null)
{
//do something with s or the output....
}

Windows Live Writer Beta 2 - Here are some of the new features you'll find

New Authoring Capabilities

  • Inline spell checking
  • Table editing
  • Ability to add categories
  • Page authoring for WordPress and TypePad
  • Support for excerpts and extended entries
  • Improved hyperlinking and image insertion
  • Paste Special
Integration and Compatibility
  • SharePoint 2007 support
  • New APIs enabling custom extensions by weblog providers
  • Automatic synchronization of local and online edits
  • Integration with Windows Live Gallery
  • Support for Blogger Labels
Plus...
  • New look and feel
  • Available in 6 languages
  • Improved accessibility and keyboard support
  • Many other frequently requested enhancements!

Windows Live Writer Beta 2 released ....

 

You can download the same from :

> Install_WLWriter