VBScript commands - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 10-02-2006, 03:52 PM   #1 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default VBScript commands

I have decided to learn VBScript. I have a few questions:

What is a good site that lists out ALL of the commands, explains them, and shows how to use them? (Commands such as Wscript.echo and InputBox)

Are there any other commands to the WScript.(something) besides WScript.echo? If there are, how many and what are they.

How do you create a loop in VBScript?

How many other commands similar to inputbox are there?

How do you make the script maximize when opened?
__________________

kpmwrestler is offline  
Old 10-02-2006, 04:39 PM   #2 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

oops! the commands such as inputbox are actually called functions, right?
__________________

__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Old 10-02-2006, 05:41 PM   #3 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

vbscript reference
http://www.devguru.com/Technologies/...ript_list.html

for wscript reference goto link above and click WSH in the left side pane

you have for...Next, foreach...Next, do...loop check the reference for syntax

msgbox will only display data, but you can add different buttons to perform different actions

lookup wscript.run syntax for maximizing windows
office politics is offline  
Old 10-02-2006, 07:02 PM   #4 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

Wow that is exactly what I was looking for!!!


Thanks a bunch

Thanks a huge amount!!!


MsgBox("Thank You!!!"), vbExclamation, ("Thanks!")
__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Old 10-02-2006, 08:04 PM   #5 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

Could you please help me with the LoadPicture command?

here is what I have so far:

LoadPicture("f:\pig.jpg")

It doesn't have any errors, but it doesn't display my picture?
__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Old 10-02-2006, 08:08 PM   #6 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

http://www.visualbasicscript.com/ - forum for help

im almost certain that vbs doesnt have a loadpicture function builtin. but you could create a user defined sub or function to do it. ummm, load picture would prolly have to be implemented inside a ASP script.

what exactly do you want loadpicture to do?
office politics is offline  
Old 10-03-2006, 07:50 AM   #7 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

Quote:
Originally posted by csamuels

im almost certain that vbs doesnt have a loadpicture function builtin.
what about this:


http://www.devguru.com/Technologies/...f/loadpic.html
kpmwrestler is offline  
Old 10-03-2006, 05:06 PM   #8 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

is there any way to make vbscript do automated stuff like:

A script that is burned to a cd, along with other things on a cd, and when the cd is inserted (no matter what drive letter the cd drive is) the script will automatically start?
__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Old 10-03-2006, 05:23 PM   #9 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

I still can't find out how to maximize a vbscript window within the same script. The only way I know is through a batch file:

@echo off
start /max f:\test.vbs
__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Old 10-03-2006, 07:52 PM   #10 (permalink)
Super Techie
 
Join Date: Jun 2006
Posts: 489
Default

how do you use the fileExist command?
__________________

__________________
Torvalds was contemptuous of Microsoft's claims and has asked Redmond to name the patent infringements so that their veracity can be challenged and workarounds found.
"Naming them would either make it clear that Linux is not infringing at all (which is quite possible, especially if the patents are bad), or would make it possible to avoid infringing by coding around whatever silly thing they claim,"

"So the whole 'We have a list and we're not telling you' should tell you something. Don't you think that if Microsoft actually had some really foolproof patent, they'd just tell us and go, 'nyaah, nyaah, nyaah!'?"

whole story here: http://www.vnunet.com/vnunet/news/21...-microsoft-put
kpmwrestler is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 04:10 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.