Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The icon is for a text file and when I click on the icon it asks me what program to open it with.

// cd c:\mysite
// node index.js
// exit
share|improve this question

closed as unclear what you're asking by Dave M, Dennis, Tog, Mokubai, Carl B Nov 20 '13 at 4:49

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

5  
The "quality standards" are not there to make you add random text. What exactly are you trying to do? What have you tried? How does it fail? What icon are you talking about? Have you made the file executble? What are the contents of your batch file? –  terdon Apr 21 '13 at 3:00
1  
Same way you create them in Windows 7. –  ta.speot.is Apr 21 '13 at 12:22

1 Answer 1

Windows 8 processes the default .bat and .cmd extensions, the same as previous versions. It may be possible that your file associations have changed.

Do the // in your code indicate comments? Batch scripts use REM or :: to indicate a comment.

If you are using Windows 8, you should look into PowerShell. It is much more flexible than batch scripts, backwards compatible, not to mention batch scripting is deprecated.

share|improve this answer
2  
Citation needed on batch scripting being deprecated. –  Mark Allen Apr 21 '13 at 18:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.