PDA

Click to See Complete Forum and Search --> : How do I create .vbs files?


Zaphod64831
Aug 10th, 2000, 12:54 AM
Anyone know?

Ianpbaker
Aug 10th, 2000, 02:59 AM
Hi Zaphod

All you need to do is create a new text file rename it anything.vbs and then write your vbscript within this. Window's automatically reconizes a vbs file and will complie and run it when clicked on.

Put this into a text file, rename it to a .vbs file and d-click on it.


Dim A
Dim B

A = 1
B = 1
msgbox "This is " & A + B & " Easy"


The only thing to remember about vbscript is everything is classed as variants so hence when I dimmed A and B you can't put Dim .. as string.

for more information on VBSCRIPT check out here

http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/techinfo/vbsdocs.htm

Hope this helps

Ian

Zaphod64831
Aug 10th, 2000, 03:18 AM
Thanks, Ian. :D