Skip to content

Create OS script file association in chocolatey package #1035

@vvolkgang

Description

@vvolkgang

Hi,

The cmdline workflow can be improved by associating .csx files to scriptcs.exe, enabling devs to run scripts with:

> FooScript.csx

Instead of:
> scriptcs FooScript.csx

In Windows this can be done with the following cmd lines:

> Assoc .csx=scriptcsfile
> Ftype scriptcsfile="C:\ProgramData\chocolatey\bin\scriptcs.exe" "%1" %*

Uninstalling scriptcs should then clear this association.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions