atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
734 stars 269 forks source link

Support for running windows batch commands. #608

Open rwatts3 opened 8 years ago

rwatts3 commented 8 years ago

Greetings,

I would like to add support for running windows batch commands in the window. Could you provide information on how I would go about doing this so that I may submit a PR .

Thank you

Ryan

rwatts3 commented 8 years ago

Correction it would be support for selection based running

rgbkrk commented 8 years ago

Batch was pretty simple for full files, IIRC. I have no idea if batch commands can be sent directly or not.

It seems like that runner relies on the command being blank and sending a full filepath. Little bit wonky, but you could probably copy the temporary file creation versions that some of the others use for selection based runs. I'm not a Windows based user but that's a start.