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
 
Maybe I am missing something, but how are the UNIX and Windows machines related ?

Bill.
 
Sorry, I should have clarified that. A bash shell is running on the Windows machine, creating an environment similar to UNIX.

Brandon
 
Withing the bash shell, use the "tr" program to convert everything to one case (either upper or lower), then fire off IE.

Bill.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top