PDA

View Full Version : Entry level scripting



Greenone
01-15-2002, 04:10 AM
I am possibly interested in learning scripting. I do not have any PC software experience except for being self taught in Macro Assembler and DOS Basic. From the language examples listed in the WinGuide, a person could draw the conclusion that VB scripting is extremely limited in what it can do. I assume there are many more operations that can be executed other than the ones listed. It would be appreciated if someone could give me a good source of information for a very green, but eager, individual who is interested in script.

adamdelves
01-15-2002, 04:05 PM
Not at all-
VB Script is the skeleton - that on its own is not of much use. However if you connect to a COM object which is an active X control you have access to all its funcitons.

For example i have just made a bulk file renamer which is actually a script. It uses VB Script which acts as the skeleton.

First it asks the user what kind of file the user wnats to rename. Using wscript.shell COM object it can check the registry to find if the key exists.
It then uses the listView object inside comctl32.ocx to access a list function. This enables you to make a list of all the files (possibly 1000's) and instantly sort them in any order you desire.

I also use a dialog box made from HTML page which again uses objects already contatained on the computer.

Lastly the renaming process is carried out by the file system object which can do just about anything possible with the file system.

Take a look in the registry under HKCR\ you'll no doubt find scripting.filesystemobject as a key. Many other similar keys represent objects that can be accessed through scripting.
And if it is microsoft it will no doubt be fully documented on www.msdn.microsoft.com