Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <3.0.5.32.20030213184528.0180eba0@mail.earthlink.net> X-Sender: rwcitek AT mail DOT earthlink DOT net Date: Thu, 13 Feb 2003 18:45:28 -0600 To: cygwin AT cygwin DOT com From: Robert Citek Subject: Re: NT wrappers In-Reply-To: <3E4BE741.C5A6BDE8@isg.de> References: <070b01c2d368$ee4bcdc0$9c00140a AT uk DOT circle DOT com> <070b01c2d368$ee4bcdc0$9c00140a AT uk DOT circle DOT com> <3 DOT 0 DOT 5 DOT 32 DOT 20030213092743 DOT 01d5cb88 AT mail DOT earthlink DOT net> <078701c2d376$4fd7a750$9c00140a AT uk DOT circle DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 07:43 PM 2/13/2003 +0100, Tino Lange wrote: >The "MS way" of scripting applications is generally *not* using the >commandline but using (D)COM. Exactly. Which is why I want to write a command-line wrapper for at least some of the DCOM functionality. >This can be done via lots of languages, very easy for example with >VBscript. > >Your wrapper will look something like that: ... Thanks for the DCOM reference and the coding example. >But: As Vince wrote this is quite offtopic here... Here is a script called "write" that allows me to use WordPad from within Cygwin: #!/bin/bash [ "$1" = "" ] && exec /cygdrive/c/WINNT/system32/write [ ! -f "$1" ] && touch "$1" exec /cygdrive/c/WINNT/system32/write "$(cygpath -w "$1" )" Why is modifying such a script to accept additional command-line arguments not germaine to this list? Regards, - Robert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/