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



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
.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #176
    ... MICROSOFT VULNERABILITY SUMMARY ... Microsoft Windows XP HCP URI Handler Arbitrary Command Execu... ... PHPNuke Category Parameter SQL Injection Vulnerability ... Microsoft Baseline Security Analyzer Vulnerability Identific... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #153
    ... MICROSOFT VULNERABILITY SUMMARY ... ZoneAlarm Random UDP Flood Denial Of Service Vulnerability ... FloosieTek FTGatePro Mail Server Path Disclosure Vulnerabili... ... Microsoft Windows NetBIOS Name Service Reply Information Lea... ...
    (Focus-Microsoft)
  • [NT] Cumulative Security Update for Internet Explorer (MS04-025)
    ... Get your security news from a reliable source. ... * Microsoft Windows NT Workstation 4.0 Service Pack 6a ... Navigation Method Cross-Domain Vulnerability ...
    (Securiteam)
  • SecurityFocus Microsoft Newsletter #120
    ... Strengthening Network Security: FREE Guide Network security is a ... MICROSOFT VULNERABILITY SUMMARY ... Microsoft Windows File Protection Signed File Replacement... ... PlatinumFTPServer Information Disclosure Vulnerability ...
    (Focus-Microsoft)