you can launch the command line version of SQLDeveloper on a command line (which can be included in a .bat file) such as this:
D:\tools\sqldeveloper\bin\sql yourusername/yourpassword@//host:1555/sid @d:\tools\countobjects.sql
The contents of the countobjects.sql file would be something such as this:
select /*csv*/ object_type, status, count(1) from user_objects group by object_type,status order by object_type,status ;
So the result of running countobjects.sql with the above command line would look something like this;
Also note that SQLDeveloper 4 requires version 8 of the Java JDK. If you run into further issues, consider creating a new post.
All the best.
empty csv not related to exe or bat file
if you add JRE to your OS path, the EXE should work just fine
give us a test case where the CSV file is reliably empty