Author Topic: Tools command line  (Read 2267 times)

Offline FriedV

  • Single posting newcomer
  • *
  • Posts: 8
Tools command line
« on: May 09, 2008, 02:33:18 pm »
Is it possible to configure the tools in the IDE to ask for  command line params as in *.bat files:

librarian.bat ->
@echo Librarian
avr-ar -crsv d:\common\libmyavr.a %1 ?

Then I wouldn't need to open a console and call this bat file explicitely.
Thx, Fried

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Tools command line
« Reply #1 on: May 09, 2008, 03:51:52 pm »
Assuming %1 is supposed to be a file (or list of files) then my ShellExtensions plugin (see the link to the CBIL project page in my sig, win32 binaries at the download page) will be well suited to your needs. This plugin allows you to add custom commands to the main menu and context menus (when you right click on files in the project page or in an open file's editing pane or in the file browser that is included in the plugin).

The command line supports a few useful variables, such as $dir, $file and $inputstr. $dir and $file is the file or directory name that the user has right clicked on. For example, you could specify the following command

Code: [Select]
svn commit $dir -m "$inputstr{Enter your commit message}"
which will run an svn commit on the selected directory and prompt you for a message in a dialog box.