So, i am doing a project on 8051 core. I would like a output to be a .bin format than .hex. So, i use hex2bin.exe for that purpose. It is easy to create a batch file and execute it from User commands in Options For Target. But the trick is that i have 12 different projects. So i want to make 12 different binaries. Now i make a batch file which would take input from user and based on that input, that particular section of batch file is called and binary file is made successfully. But the problem is that i keep getting following error:
Error: Access is Denied
whenever i run batch file from Run Commands in Options for Target. But it runs fine when i run it simply double clicking.
Can someone plz help me figure this problem out.
Wrong working directlry?
Have you tried to let the batch file start with echo of where it was started from?
yes, i have tried that and it is fine. but still error is not fixed.
So since you could prove that the file was run, and that it did start in the correct directory, you then directly went ahead and figured out exactly which line in the file that gives this error?
By the way - have you verified that the script file isn't depending on any path - the path settings when you are at the command line need not match the path settings when Keil uVision runs the script.
What should be the directory ? what is meant by wrong directory?
View all questions in Keil forum