
Hi,
I am currently working on one program which works in this way. 1) It searches for a file in a unix server and loads it into local drive say abc.txt 2) It forms a string which is combination of static+dynamic content ie. the dynamic content is user inputted and static content is prewritten. 3) We need to search this string in the abc.txt and export the results into an excel file.
Where I'm stuck:
I need to write a batch file (Windows) which will pass that string and search for that string in the file abc.txt. Need the proper way to write the batch file using FINDSTR. I am stuck in that.
My string is of format "All is well obama". Now when I wrote a sample batch file and tried to pass this string into the batch file, it took only the 1st word ie."All" and searched. But I got no output. So please help me with this too.
And also, I am using Runtime function to call the batch file into the Java code. Is there any other way to call it?
Thanks a ton for your help!! :)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.