Re: [MSH] Requires an executable on the RHS of a pipe?
- From: lee.holmes@xxxxxxxxxxxxxxxxxxxx
- Date: Mon, 20 Mar 2006 08:15:58 -0800
Current public builds don't handle this very well, and basically run invoke-item on it. That uses the Windows ShellExecute API, and opens a new console window when the script runs.
Our current development branch handles files like .vbs, .pl, etc much better. We use the Windows FindExecutable API to search for the program responsible for the file, and run it in the same console window.
--
Lee Holmes [MSFT]
Microsoft Command Shell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
-----Original Message-----
From: Nick Howell
Posted At: Saturday, March 18, 2006 9:59 PM
Posted To: microsoft.public.windows.server.scripting
Conversation: [MSH] Requires an executable on the RHS of a pipe?
Subject: Re: [MSH] Requires an executable on the RHS of a pipe?
Just out of curiosity, how *does* msh know how to use a JS file? Is it
running invoke-item on it, and JS files are bound to the WSH
interpreter, or what?
Nick
.
- Follow-Ups:
- Re: [MSH] Requires an executable on the RHS of a pipe?
- From: Bill Stewart
- Re: [MSH] Requires an executable on the RHS of a pipe?
- References:
- Re: [MSH] Requires an executable on the RHS of a pipe?
- From: Nick Howell
- Re: [MSH] Requires an executable on the RHS of a pipe?
- Prev by Date: re: Location of the profile.msh for custom provider
- Next by Date: re: (MSH) which version is a newer doc for "How MSH works" on Winfx MSDN?
- Previous by thread: Re: [MSH] Requires an executable on the RHS of a pipe?
- Next by thread: Re: [MSH] Requires an executable on the RHS of a pipe?
- Index(es):