Search found 7 matches

by rahul
12 Aug 2010 12:05
Forum: DOS Batch Forum
Topic: How to execute a function which exist in a DLL
Replies: 1
Views: 3067

How to execute a function which exist in a DLL

I had a C++ Dll, And I would like to you the function to be called in the batch program. Example: OUR.dll(dll name)---> it contains 2 function 1)add 2)subtract test.bat---> is my batch program in which i want to pass the variable like 5,3 to dlll(add function) test.bat---> I should get the executati...
by rahul
11 Aug 2010 23:22
Forum: DOS Batch Forum
Topic: Echo specified Line number data based on inout line number
Replies: 1
Views: 2841

Echo specified Line number data based on inout line number

1) I would like to use a string which exist at n th line number of data file(file containing lines of words) . 2)And to parse the exact data what i need for further operations( ":" symbol to separate left and right data to use Example: File data as below: -----------------------------FILE ...
by rahul
11 Aug 2010 02:56
Forum: DOS Batch Forum
Topic: Finding unknown string between two strings in a file
Replies: 8
Views: 13971

Re: Finding unknown string between two strings in a file

Could you let us know what you are expected from previous reply, I am unable to get you what your requesting.. 1) I would like to use a string which exist at n th line number of data file(file containing lines of words) . 2)And to parse the exact data what i need for further operations( ":"...
by rahul
08 Aug 2010 01:33
Forum: DOS Batch Forum
Topic: Finding unknown string between two strings in a file
Replies: 8
Views: 13971

Re: Finding unknown string between two strings in a file

Thanks !k, I changed as per instruction now i am able to ger the line number and not the string. Output as below ---------------------------------------------------------------------------------------------------------------- C:\>test.cmd C:\>set "output=c:\dev.txt" C:\>for /F "delims...
by rahul
07 Aug 2010 06:55
Forum: DOS Batch Forum
Topic: Finding unknown string between two strings in a file
Replies: 8
Views: 13971

Re: Finding unknown string between two strings in a file

Hi The Out file is the same real output file which as i pasted previously.....

Please help in to obtain the output..
by rahul
07 Aug 2010 04:34
Forum: DOS Batch Forum
Topic: Finding unknown string between two strings in a file
Replies: 8
Views: 13971

Re: Finding unknown string between two strings in a file

Thanks !K ,,but it was not working .. i tweaked the code but still not working :cry:

I saved the example file and code into into test.cmd.. but stilll not working

Below was the output of executation...

C:\>test.cmd
line # is
string is ""
Press any key to continue . . .
by rahul
07 Aug 2010 02:34
Forum: DOS Batch Forum
Topic: Finding unknown string between two strings in a file
Replies: 8
Views: 13971

Finding unknown string between two strings in a file

I am new to batch programming could you please specify commands to identify the unknown string in between known two strings 1)Execute a command output to search string in between known string 2)Need to use identified string for other next operations For the above 1st operation used for loop to execu...