Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open BAT (windows batch) file in Eclipse?

How to open BAT (windows batch) file in Eclipse? When I am doing Open File... the file runs, not opens. How to open it in editor?

Dragging file on Eclipse also runs it.

like image 701
Suzan Cioc Avatar asked May 15 '13 20:05

Suzan Cioc


People also ask

How do I open a batch file in eclipse?

In eclipse, batch files can be run by right clicking on the file | Open With | System Editor. This runs the batch file in a new console window. However, the execution of the batch file starts working in the eclipse installation directory. That is, path that are relative to the folder of the batch file are now invalid.

How do I open a Windows batch file?

Using a BAT file in Windows is as simple as double-clicking or double-tapping it. You don't need to download any special program or tool.

How do I start and run a batch file bat as a Windows service?

Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to run a Windows 10 batch file and press Enter: C:\PATH\TO\FOLDER\BATCH-NAME. bat.

Is bat and batch file same?

Batch file in Windows and other operating systemsMicrosoft's Windows operating system typically uses the . bat filename extension for batch files.


2 Answers

The ShellEd plugin doesn't seem to be for Windows BAT files--only Linux/Unix shell languages.

Going to Preferences->General->Editors->File Associations is how to have Eclipse open BAT files in a text editor, though.

like image 93
Daniel 'Dang' Griffith Avatar answered Oct 23 '22 09:10

Daniel 'Dang' Griffith


try with this plugin: http://sourceforge.net/apps/trac/shelled/

And also I think you chould go to preferences->general -> editors->file associoations and add bat to the list

like image 4
npocmaka Avatar answered Oct 23 '22 09:10

npocmaka