• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Batch File Runner in Windows

 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?!?!
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wicked problem! Try cmd.exe if you can find it in the Windows directories.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to use cmd.exe /C to run the batch file then terminate.
Greg
reply
    Bookmark Topic Watch Topic
  • New Topic