Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: filemenu
I can run the wbt in various ways other than from filemenu, but when it is called from filemenu I get an error message that the extender dll can not be found. I don't especially want to hard code the entire path into the addextender statement. Is there another way to make it find-able?
When I use:
extend=strcat(DirHome(),"wwctl34I.dll") AddExtender(extend)and run it from filemenu, dirhome returns c:\windows instead of the winbatch directory.
ErrorMode(@OFF) wbdir=RegQueryValue(@REGMACHINE,"SOFTWARE\Wilson WindowWare\WinBatch\CurrentVersion") if wbdir==0 wbdir=RegQueryValue(@REGMACHINE,"SOFTWARE\Wilson WindowWare\WinBatch Compiler\CurrentVersion") endif ErrorMode(@CANCEL) if wbdir==0 Display(5,"Error","Registry entries missing. Re-install WinBatch") exit endif homedir=strcat(wbdir,"system\") extend=strcat(homedir,"wwctl34I.dll") AddExtender(extend)
Is there a way to make my filemenu run for all files selected?
myfiles=FileItemize("") mycount=ItemCount(myfiles,@tab) for xx=1 to mycount thisfile=ItemExtract(xx,myfiles,@tab) Runwait("yourfile.wbt",thisfile) next
Article ID: W13022
Filename: Running WBT from FileMenu.txt
File Created: 2001:03:01:14:45:00
Last Updated: 2001:03:01:14:45:00