votes
Chopping Sting
inputPath = @"\\machinename\\newfolderName\\targetfolderName"; how to get expected output as shown below : output : targetfolderName Thanks.
blah blah blah is here! blah blah » Close
inputPath = @"\\machinename\\newfolderName\\targetfolderName"; how to get expected output as shown below : output : targetfolderName Thanks.
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
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 ...
How to get expected output as shown below? Thanks! before: <project> <tasks> <exec> <executable>C:\XXX\YYY\ZZZ.bat</executable> </exec>Z <msbuild> <ex ...
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
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"); ...
How to get expected string as shown below? 10s string str = "\hello"; output: hello
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; ...
using Microsoft.VisualStudio.CodeCoverage; CoverageInfoManager.SymPath = @"\."; CoverageInfoManager.ExePath = @"\."; CoverageInfo[] ci = new CoverageInfo[10]; CoverageInfo resultInfo = null; for (int i = 1; i < ...
string str =@"C:\LinqToObjects\bin\Debug\val.exe"; how to get expected output as shown below: expected output: C:\LinqToObjects\bin\Debug
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 ...
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 ...
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& ...
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 ...
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\ ...