I have a very simple batch file for extracting certain lines from a particular file, and then outputting those lines to a new file:
findstr "SUMMARY" 20120708.ics > test.txt
What I would really like to be able to do is drag any ics file onto the batch file icon in a Windows XP window, and have the batch file search for the string in that file, rather than searching the 20120708.ics file. I would also really like the output file to be the same name as the file that I dragged onto the batch file icon, but with the extension "txt" instead of "ics". What would I need to change in this command for that to work?
Very quick batch file question
Moderator: DosItHelp
-
- Posts: 2
- Joined: 08 Jul 2012 06:51
Re: Very quick batch file question
You are a genius sir
Makes me want to get back into computer programming again...
Makes me want to get back into computer programming again...