Top-rated recipes tagged "command_execution"http://code.activestate.com/recipes/tags/command_execution/top/2010-10-25T05:14:49-07:00ActiveState Code RecipesRun command in Win32 Registry (Python) 2010-10-25T05:14:49-07:00Phil Risthttp://code.activestate.com/recipes/users/4171119/http://code.activestate.com/recipes/577441-run-command-in-win32-registry/ <p style="color: grey"> Python recipe 577441 by <a href="/recipes/users/4171119/">Phil Rist</a> (<a href="/recipes/tags/command_execution/">command_execution</a>, <a href="/recipes/tags/win32/">win32</a>). Revision 2. </p> <p>Each file type has several commands saved in the registry and associated with the file type. These commands appear in the context menu for files of that file type. It seemed wasteful to replicate these commands with QEditor and Crimson Editor. DoCommand extracts the command from the registry, replaces macros and '%1' and '%*' strings and executes the command similar to the Do.py program.</p> Simple Buttonbar Utility Version 1 (Python) 2010-02-09T23:02:40-08:00Phil Risthttp://code.activestate.com/recipes/users/4171119/http://code.activestate.com/recipes/577038-simple-buttonbar-utility-version-1/ <p style="color: grey"> Python recipe 577038 by <a href="/recipes/users/4171119/">Phil Rist</a> (<a href="/recipes/tags/command_execution/">command_execution</a>, <a href="/recipes/tags/user_interface/">user_interface</a>). Revision 4. </p> <p>Display buttonbar generated from .ini style file of command templates. Commandline contains path used to generate commands. Templates can contain macros which will be replaced by parts of the file path. Template 'copy {a} {u}\{f}' could copy selected file {a} to backup directory {u} with same file name {f}. Command line specifies name of .ini file and which sections to include in buttonbar. Not all need be used.</p> A Moderately Simple Buttonbar Program (Python) 2010-02-10T02:08:37-08:00Phil Risthttp://code.activestate.com/recipes/users/4171119/http://code.activestate.com/recipes/577039-a-moderately-simple-buttonbar-program/ <p style="color: grey"> Python recipe 577039 by <a href="/recipes/users/4171119/">Phil Rist</a> (<a href="/recipes/tags/command_execution/">command_execution</a>, <a href="/recipes/tags/user_interface/">user_interface</a>). </p> <p>This buttonbar program is similar to my ButtonBarV1 <a href="http://code.activestate.com/recipes/577038/">recipe 577038</a> except a file pattern such as c:\source\python\new*.py can be entered instead of a single file. This will allow you to scroll through a list of matching files selecting the files you want to process. You must still select the command separately for each file. Besides the file pattern or file a menu file and an optional list of section names are specified on the command line.</p>