<http://forum.pspad.com/read.php?f=2&i=12639&t=12639> 
----------------------------------------------------------------

Hi,
thanks for PSPad, I need only very few of all the available features but
it's good to know the features are there because at one time I might need
them. Now to my problem:

How do I shell execute the opened file? I did not find this functionality
so I wrote a script, for some reason the script did not appear in the
menu.

Path is: C:\Programme\PSPad editor\Script\VBScript\Run.vbs

Content is:

###

const module_name  = "Run"         'this name must be unique !!!
const module_ver   = "1"           'version

sub Init
  addMenuItem "Run", "", "Run"
end sub

Sub Run()
        Set o = WScript.CreateObject("WSCript.shell")
        o.run GetFileName()
End Sub

Private Function GetFileName()
    Set editor = newEditor()
    editor.assignActiveEditor
    GetFileName = editor.fileName
End Function

###

I tried hard to solve my problem, I must have missed something so sorry.

Thanks
stax

-- 
PSPad freeware editor http://www.pspad.com

Reply via email to