develooper Front page | perl.beginners | Postings from March 2002

RE:how to pass 2 variables

Thread Next
From:
Jorge Goncalvez
Date:
March 13, 2002 05:10
Subject:
RE:how to pass 2 variables
Message ID:
200203131310.OAA11083@cabs40.col.bsf.alcatel.fr
Hi, I have this but it is a bit repeating I wonder how to pass 2 variables and 
use only function createScut.My code:
my $path="$RegValue\\InstallOXE.lnk";
		&createScut($path);
		my $path2="$RegValue\\remove.lnk";
		&createScut2($path2);I 
		
		sub createScut() {

  my $CMPath = GetMyRegPath::GetCygwinMountsPath();
  my $lnkLocation = shift;
  $LINK=new Win32::Shortcut();

  $LINK->{'Path'}=qq($CMPath\\Active_Perl\\Bin\\);
  $LINK->{'WorkingDirectory'}="$CMPath/Active_Perl/Bin/";
  $LINK->{'Description'}=" Serveur d'installation CS OXE ";
  $LINK->{'ShowCmd'}=SW_SHOWMINNOACTIVE;
  $LINK->{'IconLocation'}="$CMPath/Active_Perl/Bin/ras.ico";
  $LINK->Save($lnkLocation);
  $LINK->Close();

}

sub createScut2() {

  my $CMPath = GetMyRegPath::GetCygwinMountsPath();
  my $lnkLocation = shift;
  $LINK=new Win32::Shortcut();

  $LINK->{'Path'}=qq($CMPath\\);
  $LINK->{'WorkingDirectory'}="$CMPath";
  $LINK->{'Description'}=" Désinstallation de cygwin ";
  $LINK->{'ShowCmd'}=SW_SHOWMINNOACTIVE;
  $LINK->{'IconLocation'}="$CMPath/Active_Perl/Bin/cygwin.ico";
  $LINK->Save($lnkLocation);
  $LINK->Close();

}


Thanks.


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About