| ejasons Newbie
 
  
 
 Joined: April 19 2007
 Location: United States
 Online Status: Offline
 Posts: 1
 | 
          I've searched, and haven't found an answer to my question, which I hope is simple.
           | Posted: April 19 2007 at 17:02 | IP Logged |   |  
           | 
 |  
 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?
 
 |