Welcome to the WikiEdit
VBS stands for "Visual Basic Scripting". This is a wiki to give you help on all sorts of problems you may have - tips and tricks and all the like. Please make sure your edits are as accurate as possible, and PLEASE test your coding before you post it.
Things to KnowEdit
- Maybe you're new to VBS, maybe you just need a refresher, or maybe you're just still learning. In any case, you'll need a text editor to write your code in. I would suggest Notepad++. This software has a search/replace, customizable graphics user interface, word completion, multi-document (Tabs like on a browser), zoom in and out, bookmarks, macro record & playback, color coding of words, and more. I use it for everything! It's much better than just regular notepad if you're going to code.
- Don't know how to start your script in motion? Open your favorite simple text editor (Like Notepad or Notepad++) and type your code into there. Then, save your file somewhere accessible (Like your desktop) as a .vbs file. Example: "myProgram.vbs". Then double click on that file and you're good to go. :) To edit the file once you've closed notepad, simply right-click on the file and either choose "Edit" or "Open With...".
- Not all computers can run VBScripts. Your computer has to have Windows Scripting Host (WSH). I know for a fact it comes with Windows XP, Windows 7, and Windows 98. I'm not sure about Vista. I know it doesn't come with Linux, Mac, or some other operating system you might have. If you don't have it, you might be able to try this link, but no garuntees that will work...since it's meant for Windows XP.
- Surprisingly unlike other languages you may know, capitalization doesn't matter in this scripting language. Variables can be different cases and they are still the same variables, the same functions are called whether you say MsgBox or MSgbOx, and so on. It's still good practice to keep proper capitalization though. ;)