< Running Perl from Windows Console | Java & Friends  | Install, Configure and Running Oinkmaster >


 

 

Perl and Windows Script Host (WSH)

 

 

What do we have in this session?

  1. Running the Windows Script Host (WSH)

 

 

 

 

 

Running the Windows Script Host (WSH)

 

In order to run the Windows Script Host (WSH) follows the given steps:

 

Firstly, from Windows command prompt, in the Windows Script Host directory type 'perl test.pl'

 

ActivePerl, Perl for Windows - testing the Windows Script Host (WSH) from Windows console

 

The following should be a sample outputs.

 

ActivePerl, Perl for Windows - sample perl WSH output

 

 

 

ActivePerl, Perl for Windows - another sample perl WSH output

 

ActivePerl, Perl for Windows - more sample of the perl WSH output

 

To view the IE Examples, from Internet browser load IEExamples/index.htm.

 

 

 

 

 

 

 

 

----------------------------------------------------------

ActivePerl, Perl for Windows - viewing Perl script from IE browser

 

To run the Windows Script Components follow the given steps:

 

Register the script component either by right clicking on First.wsc file in Windows Explorer and selecting Register

 

ActivePerl, Perl for Windows - creating the registry keys for Perl script

 

ActivePerl, Perl for Windows - the registry keys was installed for Perl

 

Or from the command line, type "REGSVR32 /i:First.wsc C:\WINNT\System32\scrobj.dll" (or REGSVR32 /i:First.wsc C:\WINDOWS\System32\scrobj.dll – for Windows XP Pro SP2)

 

ActivePerl, Perl for Windows - installing Perl registry keys from command line

 

Then double click on test.vbs to test the component.

 

ActivePerl, Perl for Windows - running the sample vbs program

 

ActivePerl, Perl for Windows - another sample vbs program

 

ActivePerl, Perl for Windows - the Hello world sample vbs program

 

 


< Running Perl from Windows Console | Java & Friends  | Install, Configure and Running Oinkmaster >