Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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
Same way you create them in Windows 7. – Apr 21 '13 at 12:22
up vote 3 down vote accepted

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
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.