Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Inventory of scripts on this site.

 
Logged in as: Guest
arrSession:exec spGetSession 2,8,29137
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Suggestions & Feedback >> Inventory of scripts on this site.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
 Inventory of scripts on this site. - 12/19/2005 1:52:25 AM   
  HOTROD69


Posts: 23
Score: 0
Joined: 12/15/2005
Status: offline
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!
 
 
Post #: 1
 
 RE: Inventory of scripts on this site. - 12/21/2005 8:37:21 PM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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.)
 

(in reply to HOTROD69)
 
 
Post #: 2
 
 RE: Inventory of scripts on this site. - 12/23/2005 2:19:15 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
quote:

just imagine the discussion about "Option explicit


I am the script Nazi. No Option Explicit? No script for you one year!!


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

(in reply to ehvbs)
 
 
Post #: 3
 
 RE: Inventory of scripts on this site. - 1/14/2006 11:19:45 AM   
  Fredledingue


Posts: 383
Score: 0
Joined: 5/9/2005
From:
Status: offline
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

(in reply to ebgreen)
 
 
Post #: 4
 
 RE: Inventory of scripts on this site. - 1/16/2006 2:14:48 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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

 

(in reply to Fredledingue)
 
 
Post #: 5
 
 RE: Inventory of scripts on this site. - 1/16/2006 6:01:30 AM   
  Fredledingue


Posts: 383
Score: 0
Joined: 5/9/2005
From:
Status: offline
quote:

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.

quote:

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.

quote:

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.

quote:

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.

quote:

 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

quote:

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 -- 1/16/2006 6:05:49 AM >


_____________________________

Fred

(in reply to ehvbs)
 
 
Post #: 6
 
 RE: Inventory of scripts on this site. - 1/29/2006 8:22:08 PM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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

(in reply to Fredledingue)
 
 
Post #: 7
 
 RE: Inventory of scripts on this site. - 1/30/2006 1:37:11 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
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

(in reply to ehvbs)
 
 
Post #: 8
 
 RE: Inventory of scripts on this site. - 1/30/2006 4:49:13 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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

(in reply to ebgreen)
 
 
Post #: 9
 
 RE: Inventory of scripts on this site. - 1/30/2006 7:11:15 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
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

(in reply to ehvbs)
 
 
Post #: 10
 
 RE: Inventory of scripts on this site. - 1/30/2006 7:27:52 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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.

(in reply to ebgreen)
 
 
Post #: 11
 
 RE: Inventory of scripts on this site. - 1/30/2006 7:45:18 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
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

(in reply to ehvbs)
 
 
Post #: 12
 
 RE: Inventory of scripts on this site. - 1/30/2006 8:37:01 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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.

     

(in reply to ebgreen)
 
 
Post #: 13
 
 RE: Inventory of scripts on this site. - 1/30/2006 8:54:39 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
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

(in reply to ehvbs)
 
 
Post #: 14
 
 RE: Inventory of scripts on this site. - 1/30/2006 10:41:43 AM   
  ehvbs

 

Posts: 2204
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
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.

(in reply to ebgreen)
 
 
Post #: 15
 
 RE: Inventory of scripts on this site. - 2/10/2006 5:37:38 AM   
  HOTROD69


Posts: 23
Score: 0
Joined: 12/15/2005
Status: offline
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…..
 

(in reply to HOTROD69)
 
 
Post #: 16
 
 RE: Inventory of scripts on this site. - 2/10/2006 5:44:43 AM   
  ebgreen


Posts: 5069
Score: 31
Joined: 7/12/2005
Status: online
Something like this:

http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx

_____________________________

"... 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

(in reply to HOTROD69)
 
 
Post #: 17
 
 RE: Inventory of scripts on this site. - 2/10/2006 5:59:05 AM   
  HOTROD69


Posts: 23
Score: 0
Joined: 12/15/2005
Status: offline
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.

(in reply to HOTROD69)
 
 
Post #: 18
 
 RE: Inventory of scripts on this site. - 2/10/2006 6:19:33 AM   
  galiano

 

Posts: 3
Score: 0
Joined: 2/10/2006
Status: offline
Hi Folks,

I think it' s a good idea!!



Eric


(in reply to HOTROD69)
 
 
Post #: 19
 
 RE: Inventory of scripts on this site. - 2/16/2006 7:54:40 AM   
  Fredledingue


Posts: 383
Score: 0
Joined: 5/9/2005
From:
Status: offline
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

(in reply to galiano)
 
 
Post #: 20
 
 
Page:   [1] 2   next >   >>
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Suggestions & Feedback >> Inventory of scripts on this site. Page: [1] 2   next >   >>
Jump to:





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
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts