kamesh3183 has asked for the wisdom of the Perl Monks concerning the following question:

hi,i have written a small perl program.What i want to do is to create a dektop icon on windows machine. When i click this icon it should execute the perl program in background. Please tell me how to do this thing..please help me..please mention framework how to do this thing..

Thanx
kamesh

Replies are listed 'Best First'.
Re: Creating desktop icon
by Corion (Patriarch) on Oct 14, 2004 at 09:39 UTC

    Take a look at the discussion in OT Windows Installers - there are many toolkits that allow easy placement of icons on the users desktop on Win32. Of course this means that you will have to package your whole application, but I guess if your users need an icon on the desktop, they can't be trusted to install Perl themselves. To package a Perl application into one file, consider the PAR toolkit.

Re: Creating desktop icon
by Joost (Canon) on Oct 14, 2004 at 09:32 UTC
      Does it mean that i need to have Activeperl installed on the machine on which i want to execute this script. Actually i want to execute this script on the windows machine which doesn't has any perl interpreter.That means i need to create a exe file or like that..

      thanx
      kamesh
        Yes this is correct
        Either you need Perl installed or you need to build
        an executable as suggested by Corion

        si_lence
Re: Creating desktop icon
by inman (Curate) on Oct 14, 2004 at 10:50 UTC
    Locate the Perl script in Windows Explorer. Create a shortcut to the .pl (right click, create shortcut). This creates a shortcut to the file which can be moved to the desktop, renamed etc. The default shortcut simply launches the file (script) with the associated application (perl.exe).

    To get the script to execute 'in the background' you will need to edit the properties of the shortcut and change the executable to wperl.exe if you prefer not to see a command window.

    The shortcut target becomes - wperl.exe "full\path\to\script.pl"

      hi all
      thanks for your help

      kamesh
      thank you so much for ur help..