Re: [MSH] Requires an executable on the RHS of a pipe?
- From: lee.holmes@xxxxxxxxxxxxxxxxxxxx
- Date: Thu, 23 Mar 2006 09:59:12 -0800
Actually, this already works in cmd.exe, as long as the program supports it.
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\temp>.\test.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Hello, world!
C:\temp>
I had to change the registry association of vbs files to run the console scripting host (cscript.exe,) though. That is in
HKEY_CLASSES_ROOT\VBSFile\Shell\Open\Command
--
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: Bill Stewart
Posted At: Thursday, March 23, 2006 8:27 AM
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?
lee.holmes@xxxxxxxxxxxxxxxxxxxx wrote:
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.
Hi Lee,
Thanks for the explanation.
Is there any chance on getting this fixed in Cmd.exe? :-(
Thanks!
--
Bill Stewart
.
- 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?
- 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: Bill Stewart
- Re: [MSH] Requires an executable on the RHS of a pipe?
- Prev by Date: Re: XML Adaptation a bit overzealous?
- Next by Date: Re: XML Adaptation a bit overzealous?
- 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):
Relevant Pages
|