New
#1
Can't run .bat files
I know a similar topic has come up before but the solutions aren't working for me.
I got to this site as a result of googling my problem and getting to here:
https://www.sevenforums.com/attachmen...eexecution.reg
I was in the situation where Windows7 would not recognise a .bat file at all (I would get 'file cannot be found' when right clicking on the bat file and selecting 'Open').
Having established that there was no file association for .bat I tried to fix it in the File Assocation manager by browsing to cmd.exe and selecting it.
This gave the appearance of being associated but still nothing worked.
Eventually I found the registry edit file above and tried to use that to fix the problem.
This got me a step further, in that double clicking a .bat file now opens the command processor, but the file still does not run. This might be because when running the .reg file I get messages that some keys cannot be imported because they are in use. However, I don't know how to get past this problem, because from my perspective I'm not running anything at the time. There are no apps running in task manager. I've tried running regedit in Safe mode but it produces the same messages.
I am Admin on my machine which is 64 bit Win7.
Just as background and not very relevant, this problem emerged when trying to set up an environment for an Android Studio course. Android studio appears to make lots of .bat calls to start up different features.
And of course none of them work for me. I can't change the calls that Android Studio is making. Lots of other people are using the same source material, apparently without this problem as no-one has any idea what I'm talking about.
The .bat calls are all very simple...and there are no spaces or odd characters in the path.
For example..
D:\androidsdk\build-tools\21.1.2\dx.bat
If anyone can suggest how I can complete the registry edit successfully, or has any other suggestions, I'd be grateful. I'm at a complete dead-end at the moment.
Regards
Peter