X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 X-Received: by 10.180.72.148 with SMTP id d20mr14466338wiv.31.1363599325738; Mon, 18 Mar 2013 02:35:25 -0700 (PDT) In-Reply-To: References: Date: Mon, 18 Mar 2013 09:35:25 +0000 Message-ID: Subject: Re: problems with COM running native win32 applications through cygwin's bash From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 18 March 2013 06:26, Edward Peschko wrote: >>> All, > >>> We are having difficulties running various windows utilities through >>> bash. Through a regular windows cmd, one can run commands like >>> diskshadow without issue, but with bash, we are having problems with >>> COM calls not working. We have posted an example below. > >> I'd recommend reporting this to MS if you haven't already. While >> there may be something in Cygwin that needs tweaking for this, it >> would be best if MS could diagnose what is failing and why. That >> would make any Cygwin fix happen quicker. > > Larry, > > After further analysis, it looks like the reason diskshadow is failing > is because it requires a fully-fledged 64 bit running environment to > execute COM calls. As a workaround (and for whomever runs into this > same issue and needs a fix) we have downloaded ActiveState's 64 bit > native perl, and are doing: > > perl -e "system('cmd')"; > > to get a native 64 bit environment, which allows the COM calls to > happen for diskshadow. The 64-bit cmd.exe can be invoked directly like this: /cygdrive/c/sysnative/cmd Andy -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple