Re: [MSH] Requires an executable on the RHS of a pipe?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
.