blah blah blah is here! blah blah » Close

0
votes
1 answers

Chopping Sting

inputPath = @"\\machinename\\newfolderName\\targetfolderName"; how to get expected output as shown below : output : targetfolderName Thanks.

0
votes
1 answers

Different characters that used in the text

Input: "I am a boy from the country" How to get expected output: output: "I a m b o y f r t h e c u n

0
votes
1 answers

Count numbers of word's occurence

Count numbers of word's occurence in a string entered by user: input: I am teacher. You are engineer. They are students. output: Word Occurence I 1 am 1 teacher 1 You 1 are 2 engineer 1 They 1 ...

0
votes
1 answers

Insert XmlNode

How to get expected output as shown below? Thanks! before: <project> <tasks> <exec> <executable>C:\XXX\YYY\ZZZ.bat</executable> </exec>Z <msbuild> <ex ...

0
votes
1 answers

Get String Path

string str = @"C:\XXX\YYY\ZZZ\AAA\CSharp\bin\Debug\PPP.exe" how to get expected output as shown below? expected output: C:\XXX\YYY\ZZZ

0
votes
1 answers

Multiple StartInfo Arguments: Win32 Exception Unhandled, Access Denied

There is exception, Win32 Exception Unhandled while running more dynamic library files. If running 10 dynamic library files, it works well. Any solutions to solve it ?? Thx. string targetDir = string.Format(@"C:\XXX\bin\Debug"); ...

0
votes
1 answers

getting substring

How to get expected string as shown below? 10s string str = "\hello"; output: hello

0
votes
1 answers

How to get code coverage data

Refer to :http://msdn.microsoft.com/en-us/library/dd347161.aspx There is nothing inside this file, mytestrun.coverage. How to collect unit testing coverage data ? Thx. using System; using System.Collections.Generic; using System.Text; ...

0
votes
1 answers

How to create .coverage file after merging code coverage data

using Microsoft.VisualStudio.CodeCoverage; CoverageInfoManager.SymPath = @"\."; CoverageInfoManager.ExePath = @"\."; CoverageInfo[] ci = new CoverageInfo[10]; CoverageInfo resultInfo = null; for (int i = 1; i < ...

0
votes
1 answers

Chopping string

string str =@"C:\LinqToObjects\bin\Debug\val.exe"; how to get expected output as shown below: expected output: C:\LinqToObjects\bin\Debug

0
votes
1 answers

How to build solution in C#

using Microsoft.Build.BuildEngine; Engine engine = new Engine(); engine.BinPath = @"c:\windows\microsoft.net\framework\v2.0.xxxxx"; FileLogger logger = new FileLogger(); logger.Parameters = @"logfile=C:\temp\build.log&quo ...

0
votes
1 answers

Syntax is correct???

Command prompt: Vsinstr -coverage xxx.exe It works well. C#: It can't work well. Any wrong?? I refer to http://msdn.microsoft.com/en-us/library/dd347161.aspx Process p = new Process(); StringBuilder sb = new StringBuilder("/COV ...

0
votes
1 answers

Manipulat XML data in C#

I am newbie in XML. How to manipulate xml data in C#?? my xml file as shown below: myfile.xml: <project name="Hello"> <target name="XXX"> <exec program="PPP" failonerror="false& ...

0
votes
1 answers

Get exact file

using List<string> to store them. There is a list of strings as shown below: "C:\AAA\bin\Obj\XXX.dll" "C:\AAA\bin\Debug\XXX.dll" "C:\ZZZ\QQQ\OOO\bin\Obj\YYY.dll" "C:\ZZZ\QQQ\OOO\bin\Debug\Y ...

0
votes
1 answers

Chopping String

using List<string> to store them. There is a list of strings as shown below: "C:\WithCreationFilter_CS\bin\Debug\hello.dll" "C:\AAA\bin\Debug\XXX.dll" "C:\ZZZ\bin\Debug\YYY.dll" "C:\QQQ\XXX\YYY\ ...

Feedback