Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Association for a .EXE

Status
Not open for further replies.

luckydexte

Programmer
Apr 26, 2001
84
US
Hello All,

I have very limited experience when it comes to UNIX and I am running into a problem that I cannot solve. I am trying to launch a Windows Explorer browser from a shell script by passing it an argument. For example:

C:/Program Files/Internet Explorer/iexplore.exe

This works fine. However, for some reason Microsoft has started to make there executables in capital letters. Because UNIX is case sensitive it doesn't know what to do with a .EXE file. So when I run the above command with IEXPLORE.EXE it has no idea what to do.

This shell script will be running on many different machines so renaming the executable is not really a good option. Whether it be in the shell script itself or adding a file association, if any has any thoughts please let me know.

Thanks in advance,

Brandon
 
"Because UNIX is case sensitive it doesn't know what to do with a .EXE file." No, that's not the problem. UNIX doesn't care that it's a .EXE file - what matters is the permissions. On the file in question, so an "ls -al" and look to the right. I'm thinking it'll look like
-rw-r--r--
You want it to look like
-rwx-r--r--
The "x" means it's executable by the owner of the file
-rw-r--r-- 1 root other
which is root in this case. To change it, type
chmod 744 filename
making it executable by the owner, read-only for the group, and read-only for others. You could
chmod 777 filename
which makes it read, write, and executable by everybody (could be a security risk depending on your organization.)

Hope this helps!
630111
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top