Open/execute batch file on double click

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.

madhu

Posted 2012-10-01T08:46:55.730

Reputation: 1 211

What happens when you do double click it? Does it do nothing? prompt you? open in notepad? – Miles Hayler – 2012-10-01T09:02:38.120

@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 – 2012-10-01T09:08:13.607

Pasting the content of bat, will make it easier to help. – Ankit – 2012-10-01T09:15:42.053

@lamb: i dont have any problem while running content. Its a problem with default file association of windows. – madhu – 2012-10-01T09:17:36.313

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 – 2012-10-01T09:26:43.590

Answers

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

madhu

Posted 2012-10-01T08:46:55.730

Reputation: 1 211

Don't forget to actually write the answer so that it also works aftert the link to an external site has died. – Hennes – 2018-01-25T08:28:42.900

Don't forget to mark this as the answer. – Miles Hayler – 2012-10-01T10:19:59.003