Is there a way to do this purely in a .bat file?
The purpose is to launch iexplore.exe, then kill just that instance when it\'s finished.
iexplore.exe
PowerShell can be used for this:
powershell -executionPolicy bypass -command "& {$process = start-process $args[0] -passthru -argumentlist $args[1..($args.length-1)]; exit $process.id}" notepad test.txt echo Process ID of new process: %errorlevel%
Ummm, TaskList & TaskKill?!