Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Batch File Runner in Windows

 
Ashik Uzzaman
Ranch Hand
Posts: 2373
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know the name of the file that runs batch file in windows?
I need this because recently I got in trouble after creating a new file extension ".BAT" from Windows Explorer's Folder Options->File Types and told that TextPad will run the .BAT extension files. However, now I can't use the double-click approach to run say Tomcat startup.bat file because when I click it, TextPad opens the file so its not run. I have to open cmd now and from there type startup to run tomcat. The .BAT is not shown in the file types list and so at first I couldn't even change it.
To get rid of it. I tried uninstalling TextPad, creating another .BAT extension and tell to run it through WINNT/system32/cmd.exe. CMD.EXE then opens as expected a command wondow but does not run it.
So I think if I can get the name of the batch file runner, I can reassign that filename.exe (if exe at all ) to run .BAT again.
Any help?!?!
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wicked problem! Try cmd.exe if you can find it in the Windows directories.
 
Randall Twede
Ranch Hand
Posts: 4444
3
Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a .bat file to run tomcat. i open a dos window and type "tom" to run it though
 
Greg Messer
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use cmd.exe /C to run the batch file then terminate.
Greg
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic