[MSH] - Control over name suffix for MSH scripts?

Discussion in 'Scripting' started by Alex K. Angelopoulos, Mar 4, 2006.

  1. From what I can see in the current MSH release (1.0.7487.0), a script hosted
    by msh.exe - even a custom build - can only use a .msh extension.

    There may be security reasons behind this, but the fact that this extension
    seems to be hardcoded somewhere inside kind of bothers me. I kind of suspect
    that every single custom host will end up initially making its scripts use
    the .msh extension, which could lead to other problems later on.

    Is there a way to change the standard extension recognized as a script file
    by MSH, or possibly even add to the list of recognized extensions for custom
    script types useful only in certain contexts?
     
    Alex K. Angelopoulos, Mar 4, 2006
    #1
    1. Advertisements

  2. Hi,

    Did you try the 'Folder Options' in Windows Explorer?
    You can also duplicate the key HKEY_CLASSES_ROOT\.msh in Registry... but
    I not tested yet.

    []s,


    --
    "A maior glória não é ficar de pé, mas levantar-se cada vez que se cai."
    Confúcio

    Vinicius Canto Xavier - MCP Windows 2000 Server, SQL Server e XP
    Professional
    Ciencias da Computação 2004 - ICMC/USP
     
    Vinicius Canto, Mar 6, 2006
    #2
    1. Advertisements

  3. MSH doesn't go through there for its script type association. It actually
    can't for apparently the same reasons that cmd.exe can't rely on the shell
    to associate .cmd and .bat files with it - it would break pipelines.`

    --
    "A maior glória não é ficar de pé, mas levantar-se cada vez que se cai."
    Confúcio

    Vinicius Canto Xavier - MCP Windows 2000 Server, SQL Server e XP
    Professional
    Ciencias da Computação 2004 - ICMC/USP
     
    Alex K. Angelopoulos, Mar 6, 2006
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.