mbt masai
 
Welcome !
         

                                
After experiencing a lot of down time, We decided to move this site to CrystalTech.com. CrystalTech.com is powered by only the finest Windows servers providing the best performance, reliability, and value anywhere.

 Inventory of scripts on this site.

Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 26
Author Message
HOTROD69

  • Total Posts : 42
  • Scores: 0
  • Reward points : 0
  • Joined: 12/15/2005
  • Location: Milky Way Galaxy
  • Status: offline
Inventory of scripts on this site. Monday, December 19, 2005 2:52 AM (permalink)
0
Does this web site have a place where some of these script are listed by type of fonction or something like that.
 
Do you think it is possible of building one on this site. Let say a VBscript to scan computer name. and then a folder with title "InventoryVBScripts" and you would find all kinds of script for inventory. We can all work with this scriptthat this site solves all kinds of problem.  Were pepole would use them and maybe update it to be better. We would safe alot of time and pepole would stop asking the same questions. Look in this folders first find a script that you need and try to fit for your needs.   
 
  It just a Question like that. It would be fun.
 
This is a gread site alot of good and working teamates that are here to help you. Good work to everybody and have a Merry Christmas and a happy New Year!
 
#1
    ehvbs

    • Total Posts : 3312
    • Scores: 110
    • Reward points : 0
    • Joined: 6/22/2005
    • Location: Germany
    • Status: offline
    RE: Inventory of scripts on this site. Wednesday, December 21, 2005 9:37 PM (permalink)
    0
    Hi HOTROD69,

    while I like your suggestion very much, I am afraid that there are
    some difficulties:

    The members of this forum will have to agree on

      a scheme for the classification (multi-dimensional hierarchy) of
      scripts/classes/functions
     
      a set of rules for organizing modules of reusable code
     
      a coding style (just imagine the discussion about "Option explicit")
     
      a set of rules for documenting code (how else would a scanner sort
      code into the classification scheme)
     
    The admins of this site [thanks to you for your tremendous work!] will
    have to implement this (and to rework it each time we come up with
    obviously necessary enhancements).

    But I think a not so centralized approach could be implemented. Starting
    from the "The Do-It-Yourself Script Center Kit"
      http://www.microsoft.com/technet/scriptcenter/tools/diy.mspx
    all interested persons could collaborate on some enhancements of the
    classification scheme of the DIY (i.e. make it possible to find all
    code snippets dealing with parsing strings or calculation dates, to
    find all database code using ADO (vs. DAO) etc) and the addition of an
    interface to add code snippets to the database. The existing forum(s)
    could be used to publish code meant for 'our' DIY; each user can
    choose what to add to his collection and mess up his own classification
    scheme.

    ehvbs

    P.S.
    Frohe Weihnachten und ein glueckliches Neues Jahr an die Mitglieder
    dieses Forums und ein besonderer Dank an die Administratoren.
    (Thats German for: Merry Christmas and a Happy New Year to you all and
    special thanks to the admins of this site.)
     
    #2
      ebgreen

      • Total Posts : 8088
      • Scores: 95
      • Reward points : 0
      • Joined: 7/12/2005
      • Status: offline
      RE: Inventory of scripts on this site. Friday, December 23, 2005 3:19 AM (permalink)
      0

      just imagine the discussion about "Option explicit


      I am the script Nazi. No Option Explicit? No script for you one year!![sm=gunsmilie.gif][sm=gunsmilie.gif]


      NOTE: For those who may not be familiar with the sitcom Seinfeld, I'd like to say that the use of the term Nazi is by no means intended to be inflamatory.

      "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
      Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
      http://www.visualbasicscript.com/m_47117/tm.htm
      #3
        Fredledingue

        • Total Posts : 572
        • Scores: 0
        • Reward points : 0
        • Joined: 5/9/2005
        • Location: Europe
        • Status: offline
        RE: Inventory of scripts on this site. Saturday, January 14, 2006 12:19 PM (permalink)
        0
        It's a good idea.
         
        I did myself a compilation of all sort of short code in htm.
        Everytime I need something I open it and copy-paste the code.
         
        I sorted codes by the type of use, concretely:
         
        - buttons and dialog boxes
        - read and write files
        - text manipulation
        - number manipulation
        - registry manipulation
        etc
         
        Rules should be:
         
        - respect object naming convention as much as possible
        - respect case convention  as much as possible
        - short (if more than 50 lines, post it on the "show off you scripting skills" forum)
        - no garbage (Most of the examples I find on line has dozen of lines not relevant to the main goal)
        - avoid too many variable creation
         
        Fred
        #4
          ehvbs

          • Total Posts : 3312
          • Scores: 110
          • Reward points : 0
          • Joined: 6/22/2005
          • Location: Germany
          • Status: offline
          RE: Inventory of scripts on this site. Monday, January 16, 2006 3:14 AM (permalink)
          0
          Hi Fredledingue,

          may I ask you to give a little more details on the technical aspects
          of your script repository? Do you use one large .html file? How did
          you sort the code fragments? Could you describe how you do
          the searching (keywords/tags?).

          Regarding your rules: How do you define 'garbage' and what would
          I have to do to eliminate it from my code (no irony intended, I really
          want to know about your criteria to work over some code just written
          in a quick and dirty fashion to weed out the bad/ugly parts)? What do
          think about comments? Should each contribution contain/be augmented
          with (short) user/developer documentation?

          What do you think about using a database as a data store?

          Thanks

          ehvbs


          Hi all,

          I regard Fredledingue's contribution as evidence that there is at least
          some interest in a kind of VBScript Repository. I would like to ask you:
          Are there more people than just the two or four of us?

          Thanks

          ehvbs

           
          #5
            Fredledingue

            • Total Posts : 572
            • Scores: 0
            • Reward points : 0
            • Joined: 5/9/2005
            • Location: Europe
            • Status: offline
            RE: Inventory of scripts on this site. Monday, January 16, 2006 7:01 AM (permalink)
            0

            may I ask you to give a little more details on the technical aspects
            of your script repository? Do you use one large .html file?

            No: I have one "index" page with a dozen of links to a specific page.
            It's very simply made. If you want I can post it on my site or send to you the set of files.
            But I will have to translate it before because it's in french.


            How did you sort the code fragments?

            As I wrote above by the concrete use of this code, NOT by theorical classification that means nothing for a noob.
            Everything related to "reading and writing in a file" in Read_write_files.htm, everything related to "send keys" in Send_keys.htm etc
            I have a link to an scii table also.


            Could you describe how you do the searching (keywords/tags?).


            I don't have that many codes as to need a search engine.
            When it's well sorted, I find things very easily. And I even don't have a glossary and tags on my pages thought that maybe useful.
            That may be different when we will do a database with everething. But then, a 3 levels index can be enough.
            Eventualy a "search by keyword" box.


            Regarding your rules: How do you define 'garbage' and what would
            I have to do to eliminate it from my code (no irony intended, I really
            want to know about your criteria to work over some code just written
            in a quick and dirty fashion to weed out the bad/ugly parts)?

            I found almost all my codes by google search and found lots of helpfull website giving code sample.
            But everytime they are building a whole script around the single line you were looking for.
            I mean there is always a way to make the example shorter.
            Mentioning "Sub" or "Function" is useless, let alone html tags.


             What do think about comments? Should each contribution contain/be augmented
            with (short) user/developer documentation?

            If somebody find a case when a code doesn't work, it can be useful. but better is to add a simple short comment about his finding.
            instead of having a whole blog scrolling down.
            I would keep everybody's comments in a separate page and just put a link to it under the code.
            It's important that the page where the code is to be as simple as possible, not clogged with hundreds of links and tabs.

            To summ it up I have an allergy to microsoft.com help pages. IYKWIM


            What do you think about using a database as a data store?

            It depends on how many code samples we will have.
            If we have a lot and is unmageable in html pages, why not? But I know zero about these technologies.
            <message edited by Fredledingue on Monday, January 16, 2006 7:05 AM>
            Fred
            #6
              ehvbs

              • Total Posts : 3312
              • Scores: 110
              • Reward points : 0
              • Joined: 6/22/2005
              • Location: Germany
              • Status: offline
              RE: Inventory of scripts on this site. Sunday, January 29, 2006 9:22 PM (permalink)
              0
              Hi Fred,

              even if it doesn't look like this, I red your last posting carefully and thought about
              it a lot. In the moment I believe the costs of developing a VBScript code (ready to
              paste functions/classes/sequences) and sample (cutting of code/comments/remarks
              to show the 'the way to do it') repository just for the two us are too high.


              Hi unknown persons interested in a VBScript repository,

              Developing a VBScript repository from scratch may not be worth the effort. But
              I found (and played around with) iCodeLibrary.NET v1.0 - FREE at

                  http://www.imetasoft.com/iCodeLibrary/

              The application uses a .mdb and can import/export code snippets + meta information
              to/from .xml. I think it would be possible to come up with

                  a kind of template used by members of this forum to post contributions (just like
                  'ordinary' ones plus a kind of header like "author=xxxx; keywords=aaa,bb;
                  category=????;")

                  a small .hta tool to insert a clipboard copied contribution from this forum into
                  the iCodeLibrary database resp. to get material from this database into the
                  clipbord for pasting it in your code

              What about giving it a test?

              Hi all,

              if there is anybody interested in a VBScript repository of any kind - please say so!

              ehvbs

              #7
                ebgreen

                • Total Posts : 8088
                • Scores: 95
                • Reward points : 0
                • Joined: 7/12/2005
                • Status: offline
                RE: Inventory of scripts on this site. Monday, January 30, 2006 2:37 AM (permalink)
                0
                If you are simply looking for a tool to insert snippets of your saved code for you, PrimalScript is great for that. Here at my work we keep all of our snippets on a network share so with a double click I am using the same code as my coworkers.
                "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                http://www.visualbasicscript.com/m_47117/tm.htm
                #8
                  ehvbs

                  • Total Posts : 3312
                  • Scores: 110
                  • Reward points : 0
                  • Joined: 6/22/2005
                  • Location: Germany
                  • Status: offline
                  RE: Inventory of scripts on this site. Monday, January 30, 2006 5:49 AM (permalink)
                  0
                  Hi ebgreen,

                  thanks for your interest/reference to PrimalScript. But I'm looking for a way to get
                  a community project/effort "VBScript Repository" started. Tayloring the solution to
                  one (probably the best) editor would exclude 75% of all possible participants;
                  designing it for four to five editors would triple the work. That's why I keep thinking
                  of the clipboard as a means of putting something in whatever editor you use and
                  of a ready made free tool like iCodeLibrary for browsing/organizing your material.

                  ehvbs
                  #9
                    ebgreen

                    • Total Posts : 8088
                    • Scores: 95
                    • Reward points : 0
                    • Joined: 7/12/2005
                    • Status: offline
                    RE: Inventory of scripts on this site. Monday, January 30, 2006 8:11 AM (permalink)
                    0
                    In that case, I would think the best solution would be a MySql back ended web page (although I suppose that to be true to VBScript it should be SQL/ASP).
                    "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                    Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                    http://www.visualbasicscript.com/m_47117/tm.htm
                    #10
                      ehvbs

                      • Total Posts : 3312
                      • Scores: 110
                      • Reward points : 0
                      • Joined: 6/22/2005
                      • Location: Germany
                      • Status: offline
                      RE: Inventory of scripts on this site. Monday, January 30, 2006 8:27 AM (permalink)
                      0
                      I don't think so, because a centralized approach presupposes

                        1. an 'universal' agreement about the classification scheme
                        2. a webhost
                        3. a lot of work

                      and it would cut off the VBScript Repository from this Forum
                      (really a bad move!)

                      I still dream of an easy (to develop, to maintain, to install, to
                      use) way to tap into the knowledge/work collected here.

                      #11
                        ebgreen

                        • Total Posts : 8088
                        • Scores: 95
                        • Reward points : 0
                        • Joined: 7/12/2005
                        • Status: offline
                        RE: Inventory of scripts on this site. Monday, January 30, 2006 8:45 AM (permalink)
                        0
                        Well,


                          1. an 'universal' agreement about the classification scheme  - I would expect whoever was maintaining the collection to decide on a scheme then anyone who wanted to use the collection to follow it.
                          2. a webhost  - If we are talking about a solution for www.visualbasicscript.com then I don't think coming up with a webhost would be a problem.
                          3. a lot of work  - True, but I think it would be true of any solution.

                        and it would cut off the VBScript Repository from this Forum  - What do you mean?
                        "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                        Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                        http://www.visualbasicscript.com/m_47117/tm.htm
                        #12
                          ehvbs

                          • Total Posts : 3312
                          • Scores: 110
                          • Reward points : 0
                          • Joined: 6/22/2005
                          • Location: Germany
                          • Status: offline
                          RE: Inventory of scripts on this site. Monday, January 30, 2006 9:37 AM (permalink)
                          0
                          Well,

                          (1) didn't you point out at the danger of someone trying to make his rules obligatory for
                                everybody? In my collection I need to find a Perl and a VBScript version of a function
                                to insert an array into a database row; Fredledingue would like a lot of HTML snippets;
                                perhaps you would like to keep all WMI related items together in one branch of the
                                classification scheme; some other person has to get the UserName and isn't interested
                                in/hasn't got a clue about the technology to use.

                          (2) I should have said: a webhost and somebody maintaining it

                          (3) If you use a browsing/organizing tool like the iCodeLibrary or the ScriptCenter
                                you just have to add
                                    (a) a simple .hta to get an identified item from the database into the clipboard
                                          and an item from the clipboard (got there by select all + copy from a suitable
                                          posting to the Forum) into the database
                                    (b)  an agreement about the format of such postings

                          (4) 'cut off' - even if the centralized webhosted database is run by www.visualbasicscript.com
                                a contributor would have to decide wheter to submit his posting to the forum or the VBScript
                                Repository; and the users have to watch two sites.

                          P.S. I really appreciate your continuing interest in/contributions to this topic.

                               
                          #13
                            ebgreen

                            • Total Posts : 8088
                            • Scores: 95
                            • Reward points : 0
                            • Joined: 7/12/2005
                            • Status: offline
                            RE: Inventory of scripts on this site. Monday, January 30, 2006 9:54 AM (permalink)
                            0
                            I guess I don't understand what the goal is here. If it is a script repository that is maintained on the web or one that each person would maintain themselves locally. If the oal is a web version, then here are my answers:

                            (1) - I often get referred to as the script nazi for forcing people at work to follow my standards however the standards that I am most adamant about are ones that are pretty widely agreed to be important in the scripting community at large (use OPtion Explicit, No global On Error Resume Next, etc.) I just think that if you have a web based scripts repository then whoever maintains it should be able to determine the layout. That is no different than the fact that the site creators for this forum were able to determine the categories available for posting in.
                            (4) - If there was a central code repository then there would be no need for the forum category and thus no dilemma over where to post.

                            If the goal is a local repository, then I agree that something like iCodeLibrary would be fine. I don'tthink you will ever be able to get everyone to agree on a format though. I doubt you could even get them to agree on something like using spaces or tabs for indentation let alone how far to indent in the first place.
                            "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                            Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                            http://www.visualbasicscript.com/m_47117/tm.htm
                            #14
                              ehvbs

                              • Total Posts : 3312
                              • Scores: 110
                              • Reward points : 0
                              • Joined: 6/22/2005
                              • Location: Germany
                              • Status: offline
                              RE: Inventory of scripts on this site. Monday, January 30, 2006 11:41 AM (permalink)
                              0
                              Hi ebgreen,

                              thanks for forcing me to think and talk about my pet more clearly! The goal of the first
                              contributor was to get scripts/howtos from this forum fast - no complicated search process,
                              no fear to miss the gold because you selected a 'wrong' keyword. I have my own material
                              organized in a way that is not bad (ok, sometimes I write something again, because another
                              computer isn't available at the moment or I forget which project that particular function
                              was used in), but it is difficult to integrate other people's code/postings/docs. Fredledingue's
                              description of his practice made me realize that

                                  a centralized approach would have to be maintained correctly and wouldn't be
                                  usable if the contributers wouldn't adhere to very specific rules of classification

                                  a localized approach would allow each person to take what she needs and to
                                  classify it according to his own scheme (that doesn't mean there couldn't be
                                  some proposals/discussions about categories and their order)

                              I don't want to critize the order/structure/categories of this forum - it's a forum:
                              you get some 10 main categories and below that a chronological list of topics
                              (normaly a question and some answers). Finding something which isn't on the
                              first two pages and hasn't got a carefully worded subject means a full text
                              search - in my opinion just the opposite of accessing categorized data. Just
                              because I know that I wouldn't come up with a 'one size fits all' and easy to
                              apply scheme makes me think: each to her own.

                              I don't think that coding style would be a problem: if you get something helpful
                              fast, you can spend a little time to rework ('refactor') the code - and you don't
                              have to discuss it with the original author.

                              From what I learned about the xml format of iCodeLibrary, a contribution
                              could look like this (a 'normal' posting, just VBSR as a marker in the subject)

                              Subject: VBSR Create ADO Connection
                              Author: ehvbs
                              Keywords: database, ado, connection

                              Description:
                                Creates an ADODB.Connection according to the information in aParams. aParams(0)
                                is the type (MDB, TEXT, ...), the following paramaeters depend on this type - e.g.
                                Param( 1 ) is the directory with schema.ini and data files for TEXT ...

                              Function newAdoCN( aParms )
                                Const csODBVers = ""
                                Dim oRVal : Set oRVal = Nothing
                                ....
                                oRVal.Open sCNStr
                                Set newAdoCN = oRVal     
                              End Function

                              Sample usage:

                                  Dim oCN : Set oCN = newAdoCN( Array( "text", ".\" ) )

                              for accessing the current directory as a poor man's sql server.


                              The user would select all + copy [I have to test this for code tags ...] and the hta app
                              would put this into the mdb readable by iCodeLibrary.

                              #15
                                HOTROD69

                                • Total Posts : 42
                                • Scores: 0
                                • Reward points : 0
                                • Joined: 12/15/2005
                                • Location: Milky Way Galaxy
                                • Status: offline
                                RE: Inventory of scripts on this site. Friday, February 10, 2006 6:37 AM (permalink)
                                0
                                Do we need it to be so difficult?
                                 
                                First we need to have a name for this folders Like " InventoryVBScripts" and subdirectories for classification.
                                 
                                We need to decide what wood be these folder names to properly class these Scripts.
                                 
                                Inside these folders people will but there codes and if someone has the same code but better, he replies to it.
                                But we would need to send it to an adviser that would classify it and explain what function of this script is in a general way. This advisor will only class the new scripts so people can modify to simplify the script.
                                 
                                InventoryVBScripts
                                           -Commands lines (Make directories, etc...)
                                           -Computer inventory
                                           -Change Permissions
                                           -Computer Management
                                           -Etc…..
                                 
                                #16
                                  ebgreen

                                  • Total Posts : 8088
                                  • Scores: 95
                                  • Reward points : 0
                                  • Joined: 7/12/2005
                                  • Status: offline
                                  RE: Inventory of scripts on this site. Friday, February 10, 2006 6:44 AM (permalink)
                                  "... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
                                  Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
                                  http://www.visualbasicscript.com/m_47117/tm.htm
                                  #17
                                    HOTROD69

                                    • Total Posts : 42
                                    • Scores: 0
                                    • Reward points : 0
                                    • Joined: 12/15/2005
                                    • Location: Milky Way Galaxy
                                    • Status: offline
                                    RE: Inventory of scripts on this site. Friday, February 10, 2006 6:59 AM (permalink)
                                    0
                                    Yes exactly but better. With your site their better information because you have real problems that people face and if you can use that knowledge and learn other ideals to simplify the scripts that are done. People can search on this site and use the script that are done and if this person find a better or modifies this script to even be better replies to this script and show what he changed.

                                    #18
                                      galiano

                                      • Total Posts : 3
                                      • Scores: 0
                                      • Reward points : 0
                                      • Joined: 2/10/2006
                                      • Status: offline
                                      RE: Inventory of scripts on this site. Friday, February 10, 2006 7:19 AM (permalink)
                                      0
                                      Hi Folks,
                                       
                                      I think it' s a good idea!!
                                       

                                       
                                      Eric
                                       
                                       
                                      #19
                                        Fredledingue

                                        • Total Posts : 572
                                        • Scores: 0
                                        • Reward points : 0
                                        • Joined: 5/9/2005
                                        • Location: Europe
                                        • Status: offline
                                        RE: Inventory of scripts on this site. Thursday, February 16, 2006 8:54 AM (permalink)
                                        0
                                        ehvbs,
                                         
                                        I don't think it should be too difficult to create an hta script to generate html pages or adding to existing html pages, to save script samples
                                        The html format is the most universal and readable by everybody and it's easy and configurable at will.
                                         
                                        We could create another hta to search scripts, but I don't think it's necessary because it's not that difficult to copy paste from a html page. Unless you wants to add lots of comments and extra stuffs. But my idea is to put 5 to 20 samples in each page therefore we would need to economise as much room as possible to avoid scrolling too much. Well, there tons of possibilities anyway.
                                         
                                        This hta interface would allow each user to create his own category and will show categories already available. And sub categories.
                                        This way everybody could make its own database and even, since users are supposed to be able to script, modify the hta application themselves if they want.
                                        One public version could be posted here, as a website, and downloadable in a zip pack.
                                         
                                        If you want I can try a first pre-beta version.
                                         
                                        A second thought: before starting we should share all the naming convention and style that we think are the most universaly shared and the easiest to use and read. We should post in a special forum all these conventions and discuss and decide which one to use.
                                         
                                        Example: for setting the createobject("scripting.filesystemobject") do you name it:
                                        fso
                                        FSO
                                        oFS
                                        objFS
                                        fs
                                         
                                         
                                        Fred
                                        #20

                                          Online Bookmarks Sharing: Share/Bookmark
                                          Change Page: 12 > | Showing page 1 of 2, messages 1 to 20 of 26

                                          Jump to:

                                          Current active users

                                          There are 0 members and 1 guests.

                                          Icon Legend and Permission

                                          • New Messages
                                          • No New Messages
                                          • Hot Topic w/ New Messages
                                          • Hot Topic w/o New Messages
                                          • Locked w/ New Messages
                                          • Locked w/o New Messages
                                          • Read Message
                                          • Post New Thread
                                          • Reply to message
                                          • Post New Poll
                                          • Submit Vote
                                          • Post reward post
                                          • Delete my own posts
                                          • Delete my own threads
                                          • Rate post

                                          2000-2012 ASPPlayground.NET Forum Version 3.8
                                          mbt shoes www.wileywilson.com