in reply to Opening Apps

I am trying to create a program that will launch several applications for myself in Windows 95. So that I can click on one program and it'll launch my browser, my graphics editor, my text editor, and so on. I want to accomplish this by using an external file that I can somehow store the information into variables so that I can compile the program and still be able to edit it.

Replies are listed 'Best First'.
RE: Re: Opening Apps
by httptech (Chaplain) on Jun 07, 2000 at 05:41 UTC
    Look at using the Win32::Process module. It's the only way you are going to be able to launch several applications at once on Win32 without using Perl 5.6 and some fork()ing.

    The other methods that have been mentioned in this thread will force your program to wait until the launched application closes before it can continue running, which isn't a desirable side-effect if you are programming an application launcher.

RE: Re: Opening Apps
by BigJoe (Curate) on Jun 07, 2000 at 01:15 UTC
    do like what was suggested before:
    my $val1=`notepad.exe`; my $val2=`program2.exe`; . . .
    or put the names of the programs into a txt file and run through it.
    ***progs.txt**** notepad.exe paint.exe . . .
    then have a script to do this
    open(INPUTFILE, "progs.txt"); while(<INPUTFILE>){ $val=`print`; }
    This was not tested but would be where I would start.

    --Big Joe
      I don't think that this works
      open(INPUTFILE, "progs.txt"); while(<INPUTFILE>){ $val=`print`; }
      because I don't think you can issue a perl print inside of backticks.
        How About?
        open(INPUTFILE, "progs.txt"); while(<INPUTFILE>){ $val=`$_`; }