Search found 2 matches
- 01 Dec 2010 13:39
- Forum: DOS Batch Forum
- Topic: Set a variable
- Replies: 3
- Views: 4252
Re: Set a variable
I want to introduce it in a console application. Console.Write("Count"+lines); The lines is the number of lines. I use the code like Process test = new Process(); test.StartInfo.FileName = "cmd"; test.StartInfo.Arguments = @.... I don't know how to combine your code with my snipp...
- 01 Dec 2010 08:33
- Forum: DOS Batch Forum
- Topic: Set a variable
- Replies: 3
- Views: 4252
Set a variable
Hi, I want to use "find" command to count the number of lines containing the string in a text file. The command is pretty straightforward.
My question is that can I save the result to a variable?
Because I am going to use it in microsoft .net application.
Thanks
My question is that can I save the result to a variable?
Because I am going to use it in microsoft .net application.
Thanks