Re: c: browser inaccessible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2010-02-07 at 06:06 -0600, Perreau wrote:

> Another question is: how to make an icon for a .bat program ? The icon
> I have created opens the script as text and does not execute it as a
> program
>
Write the bat file and create or locate the image you'll use for the
icon.
 
Create a Gnome Launcher that runs the Wineconsole command you use to
execute the .bat file. However, it may be easier to wrap that in a bash
shell script and then start that with a launcher. The script would be
something like this:

===================batscript==========================
#!/bin/bash
wineconsole batfile.bat

===============end of batscript=======================
 
Make batscript executable:

code:  chmod u+x batscript

and put it somewhere where its always available. The Linux convention is
to create a 'bin' directory in your login directory and then add it to
the search path by putting the line

   export PATH=$PATH:$HOME/bin:.

in the .bash_profile file in your login directory. You'll have to logout
and login again for this to take effect.

Now test batscript by running it from the Linux command line. You may
want to use a 'pause' command as its final action so you get a chance to
read its output. When you're happy with it, create a launcher that uses
'batscript' as its command and references your icon image. 
 

Martin




[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux