How To Install Sapcar.exe On Linux
I am new to Linux.I am currently trying to write a command line which should execute a *.exe inside a folder abc.
I have tried
But the error says no such file or directory
.
Any suggestions?
migrated from stackoverflow.comSep 29 '09 at 22:24
This question came from our site for professional and enthusiast programmers.
7 Answers
try:
but if it's really a Windows program, you will need to install 'wine', then do:
but only some Windows programs will work under wine.
This anwswer is combining other answers in to this question into one.
The info.exe file will either execute under Linux or Windows, but not both.
If the file is a windows file, it will not run under Linux on it's own. So if that's the case, you could try running it under a windows emulator (WINE). If it's not compatible with wine, then you won't be able to execute it under Linux.
Before you can start, you will need to install wine. The steps you need to install wine will vary on the linux platform you are on. You can probably google 'Ubuntu install wine', if for example, you're installing ubuntu.
Once you have wine installed, then you'd be able to execute these commands.
if you know this file to run under linux, then you'll want to execute these commands:
Change to your abc directory
Then you'll want to change permissions to allow all users to execute this file (a+x).
you could also allow just the user to execute (u+x)
Launch the program, the ./ tells the command line to look in the current pathfor the file to execute (if the 'current' directory isn't in the $PATH environmentvariable.
you can't :) exe is Microsoft only. now if you had a linux executable you could do:
On Linux you give the file executable permissions. It isn't the extension that determines whether or not it can be executed (as on windows.)
Assuming you have a valid file that can be executed in Linux, (not a windows/dos file) do this:
Note that you need the leading ./ for the shell to find the file in the current directory!
This really belongs on superuser though.
I recently wanted to run some old MSDOS .exe files and I could just use dosbox. On Ubuntu it was just
apt-get install dosbox
then
dosbox file.exe
.exes are generally Windows executables, not linux ones. To run those, use something like WINE.
Otherwise, to run a Linux executable, there are many ways, e.g.:
- cd abc; ./info.exe
- ./abc/info.exe
- /full/path/to/abc/info.exe
- Add 'abc' to your PATH, then just run it as a normal command....
Wine is a program that you can install, it's a program to run .exe files in linux.
apt-get install wine
(go to teh directory of your file: /cd (ex: Desktop/)And to open your .exe file:
wine PROGRAM [AGRUMENTS]
Any problems with wine you can do: wine --help
That's the way I tried and it works.