8

I am trying to uninstall Oracle on this Windows 7 (64 bit) machine by downloading a standalone tool from Oracle, I need to run a batch file that is supposed to uninstall but I am unable to run it.

I tried to open command prompt as administrator and I am trying to run this as below: enter image description here

As you can clearly see from the screenshot, I am doing a "dir" on the directory and can clearly see the file right there. Not sure what's going on here.

I also tried to run the batch file by double clicking from Windows Explorer and a terminal window opens and closes quickly but the batch file is not doing what it is supposed to do (it is clearly not executing from Windows Explorer).

Can anyone help me with this?

3
  • I also tried using the full path like "c:\temp\deinstall.bat" but same results. Commented Jun 16, 2016 at 14:45
  • 9
    Open the bat file in notepad. I'll bet it starts with @echo off, and that the error is actually coming from inside the batch file. The error if the batch file itself wasn't found is 'X' is not recognized as an internal or external command, operable program or batch file. Commented Jun 16, 2016 at 14:55
  • Thanks. Just turned echo off and found out that the system was not complaining about the deinstall.bat but another file referenced within the script. Thanks! That resolved my problem. Commented Jun 16, 2016 at 14:59

2 Answers 2

13

As theB pointed out above in a comment, this worked for me:

Open the bat file in notepad. I'll bet it starts with @echo off, and that the error is actually coming from inside the batch file. The error if the batch file itself wasn't found is 'X' is not recognized as an internal or external command, operable program or batch file

Sign up to request clarification or add additional context in comments.

Comments

3

'Run as Administrator' changes the current directory. See my answer here Difference between "%~dp0" and ".\"?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.