Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Help with ActivePerl Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ejasons
Newbie
Newbie


Joined: April 19 2007
Location: United States
Online Status: Offline
Posts: 1
Posted: April 19 2007 at 17:02 | IP Logged Quote ejasons

I've searched, and haven't found an answer to my question, which I hope is simple.

I'm trying to use ActivePerl as a scripting language, using the ph_runscript functions. I can get the external script to be run, but can't see any way to allow it access to the powerhome (ph.* and such), or, for that matter, the other windows scripting functions.

For example, if I just have the following WSF script:
    $WScript->Echo("Hello");

I can run it successfully with "cscript.exe" or "wscript.exe". However, when invoked from within PowerHome, $WScript is undefined. From my searching for Visual Basic scripts, it seems that, under PowerHome and Visual Basic, the "WScript" is implied (when it wouldn't otherwise be), and one would just do:
    Echo("Hello");

That also doesn't work from PowerHome.

Any ideas?
Back to Top View ejasons's Profile Search for other posts by ejasons
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum