6

I have created a batch file(.bat file). I am not sure, due to some reasons its not running when i double click on it.

I configured Control Panel\All Control Panel Items\Default Programs\Set Associations

.bat file as windows command processor and retried still file path is opening in does prompt. but file is not running. Please help me.

5
  • What happens when you do double click it? Does it do nothing? prompt you? open in notepad? – Miles Hayler Oct 1 '12 at 9:02
  • @miles hayler: if the file is on desktop, path of desktop is opening in command prompt. Then i can able to run it by typing file name. It is became 2 step process. – madhu Oct 1 '12 at 9:08
  • Pasting the content of bat, will make it easier to help. – Ankit Oct 1 '12 at 9:15
  • @lamb: i dont have any problem while running content. Its a problem with default file association of windows. – madhu Oct 1 '12 at 9:17
  • Do you have UAC enabled or disabled? If it's opening the command prompt then it know what it's supposed to do with it in terms of file association. – Miles Hayler Oct 1 '12 at 9:26
3

Thank you all, I found a solution for my problem http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html. click here

2
  • Don't forget to mark this as the answer. – Miles Hayler Oct 1 '12 at 10:19
  • Don't forget to actually write the answer so that it also works aftert the link to an external site has died. – Hennes Jan 25 '18 at 8:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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