Run an EXE file from MATLAB 64bit (Windows 8.1 64Bits) - matlab

I want to run an EXE file named "LBRM.EXE" by MATLAB.
I try:
dos('lbrm.exe')
and I get error:
'lbrm.exe' is not recognized as an internal or external command,
operable program or batch file.
Exactly the same code works fine in 32bit MATLAB.
mesh -setup did not help!

Since it appears you're not returning any arguments from the call, you could see if you have better luck with the bang operator:
!lbrm.exe

You have to add the EXE in your environmental variables in Windows or to move to the directory of the EXE file.
To move to the directory of the EXE file, use CD('EXE file folder') then you can execute your file by using the system command. system('lbrm.exe')

Related

ISCC.exe not found in powershell [duplicate]

I am trying to turn an Inno .iss file to the installer .exe over the command line.
I have found this page on the Inno website which shows you how to do this:
http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
When I tried these commands, I got the command not found error:
'compil32' is not recognized as an internal or external command,
operable program or batch file.
I got the same error when trying iscc instead of compil32. I also tried compil64, as my computer is 64 bit, with the same result.
Thanks in advance.
This is basic operating system functionality. You need to either put the directories where the Inno Setup binaries are located into your system PATH, or use a fully qualified pathname to the executables when running them.

'raco' is not recognized on the windows 10 command line

I'm trying to get familiar with DrRacket plugin framework, and I'm using the following tutorial:
https://lang.video/blog/2018/03/21/making-an-ide-plugin-for-drracket/
I'm stuck at the step where raco is used:
When i run the command, my windows 10 operating system gives back the following error message, How can i solve this?:
'raco' is not recognized as an internal or external command,
operable program or batch file.
second question:
I've also tried putting the clippy folder into a folder within my program files, in the DrRacket installation. Is this the location where Racket Plugins should reside, or can they be placed in any folder?
Add racket and raco to your Windows PATH (the directories in which Windows looks for commands).
https://beautifulracket.com/setting-the-windows-path.html

Why aren't Tesseract and GhostScript recognized as commands?

I have a large batch of PDFs that I can't OCR because they've each got a small field of renderable text.
I'm trying to convert them all to TIFF so I can convert back and run OCR, but I'm running into problems invoking the programs that I'd expect to do the job. I installed them without issue, but for some reason, I keep getting errors saying the associated commands don't exist:
c:\Program Files\Python37\Lib\site-packages>pip install tesseract
Requirement already satisfied: tesseract in c:\program files\python37\lib\site-packages (0.1.3)
c:\Program Files\Python37\Lib\site-packages>tesseract --version
'tesseract' is not recognized as an internal or external command,
operable program or batch file.
c:\Program Files\Python37\Lib\site-packages>pip install ghostscript
Requirement already satisfied: ghostscript in c:\program files\python37\lib\site-packages (0.6)
Requirement already satisfied: setuptools in c:\program files\python37\lib\site-packages (from ghostscript) (40.8.0)
c:\Program Files\Python37\Lib\site-packages>gs --version
'gs' is not recognized as an internal or external command,
operable program or batch file.
c:\Program Files\Python37\Lib\site-packages>gswin32c --version
'gswin32c' is not recognized as an internal or external command,
operable program or batch file.
Any ideas what I'm doing wrong?
Bonus points if you've got a better way to perform the overall task.
I notice you are using Windows, I would guess that you haev not added the Ghostscript install directory to the $PATH environment variable, and so Windows does not know where to look to find the executable.
It may be that Python can use the Ghostscript executable from the python37\lib\site-packages directory, but Windows won't know that unless its been told to look there. It'll probably be a sub-directory, unless the Python package installer uses something other than the normal Ghostscript Windows installer.
Note that on Windows the binary is not called 'gs'; it will be either gswin32, gswin64, gswin32c or gswin64c depending on whether you installed the 32 or 64-bit version of Ghostscript, and whether you want the command line (c) or windowed version.
Probably the easiest way to find it is to look in the specified Python folder and see.

Compiling inno .iss file with the command line

I am trying to turn an Inno .iss file to the installer .exe over the command line.
I have found this page on the Inno website which shows you how to do this:
http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
When I tried these commands, I got the command not found error:
'compil32' is not recognized as an internal or external command,
operable program or batch file.
I got the same error when trying iscc instead of compil32. I also tried compil64, as my computer is 64 bit, with the same result.
Thanks in advance.
This is basic operating system functionality. You need to either put the directories where the Inno Setup binaries are located into your system PATH, or use a fully qualified pathname to the executables when running them.

SML/NJ Error in Command Prompt

So I installed SML/NJ in Windows 10 using the Windows Installer Package "smlnj-110.79", and following the instructions in this coursera video lecture, i should be able to open the command prompt and access sml by typing "sml". However, when I return "sml" I'm prompted that "sml is not recognized as an internal or external command, operable program or batch file". I should note that it works fine if I open the actual SML/NJ program itself. I am trying to use SML/NJ within emacs, will this affect that? Thank you!
You need to add the directory containing SML to your system path. On my machine the path entry is C:\Program Files (x86)\SMLNJ\bin\. See this for modifying the path in Windows 10. If you haven't manually edited your path before (which seems to be the case given the question) you do need to be careful to add to rather than overwrite the current path. Windows has always been clunky in making this possible. This is an article that suggests some utilities. I haven't tried them, so I can't vouch for them.