If you're hacky enough, you might need to add another explorer context menu item, similar to Run with F# Interactive, but keeping the console window open after the .fsxscript completes . Here is a work plan on how to achieve this for Windows7 / VS2012:
- is an open administrator
regeditand find the keyHKEY_CLASSES_ROOT\VisualStudio.fsx.11.0\shell - add a new subsection with some unique name, for example
openRunCmd, make a (Default)value for this key, what would you like to see in the context menu, perhapsRun with Fsi in shell finally add a subsection HKEY_CLASSES_ROOT\VisualStudio.fsx.11.0\shell\openRunCmd\commandand set the value of this value to the value (Default)for the following line:
c:\windows\system32\cmd.exe /Q /K %%USERPROFILE%%\fsx.bat "%1"
Now close regedit, go to your home directory and create a batch file fsx.batwith the following line:
"C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\Fsi.exe" --quiet --exec "%1"
.fsx script , Run with Fsi in shell script . VS2010.
, . !
. , , .