Re: WScript JavaScript library





So, yes,pantagruel, if you were to write this library, I'd like to
see parameter typing, handling wildcards, recursing through
directories, a wrapper around Exec and handlers for all the possible
return codes. I am not an advanced WScripter and don't wish to be so
you may have to go over to the microsoft forums to get a better
answer.


Thanks for the suggestions. I was thinking:

1. some smarter command line handling, specify parsing of commandline
so that all files get put into a files object and then you can specify
run function x over all files on command line type stuff.

2. all major vbscript data type conversions supported (basically just
support this by having it in a WSF file with the vbscript functions to
return correct data types) good for handling stuff like WMI dates.

3. definitely filesystem recursing.

a question:

Do you think it would be useful to allow evaluation of JavaScript
code on the command line, i.e. run JavaScript in cscript.exe and allow
it to run as a shell?

Best Regards
.



Relevant Pages

  • Re: VFP9 SP2: Click command button
    ... The menu should have no knowledge at all about which object is handling its request or which method of that object is involved. ... However, you can do it but again, it's usually bad programming practice and probably makes more sense to have both the menu click and the command button access a procedure in a prg file if it's not specific to the form. ... global variables are also not great programming practice but a few are sometimes used. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Pick R83 serial connection (newbie)
    ... far and especially for Tony who is incredibly adept at handling this ... I have a spare 386DX chip and will try it on or get the owner to take ... I am still curious about the FTTCL command... ...
    (comp.databases.pick)
  • Re: Error Handling in SQL?
    ... data type mis-match will abort processing, primary key errors won't. ... already pointed you out to the best articles available on tsql error ... handling but I'd add that you really need to handle error conditions in your ...
    (microsoft.public.sqlserver.server)
  • Re: try catch commond doesnt work on SQLEXEC
    ... I am handling for a return of -1, but no matter what I do I can't ... > Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP ... >> catch command to do my error handling. ... >> catch errors thrown by the sqlexec function. ...
    (microsoft.public.fox.helpwanted)
  • Re: + git-klibc-mktemp-fix.patch added to -mm tree
    ... Keith Owens wrote: ... to do with the fact that make's handling of tools that output more than one file at a time is at the very best insane) ... aicasm_gram.tab.h or aicasm_gram.tab.c without any races. ... but you still need a command to keep make ...
    (Linux-Kernel)