FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


VBScript





pollux1er
Hi to every body. I want to write a vbscript that will be executed when i double click on it. Can you help me?
Stubru Freak
pollux1er wrote:
Hi to every body. I want to write a vbscript that will be executed when i double click on it. Can you help me?


Check http://en.wikipedia.org/wiki/VBScript and http://msdn.microsoft.com/en-us/library/t0aew7h6(VS.85).aspx
JSoetens
What does the script needs to do?
Marcuzzo
the OP posted this 2 years ago...
pollux1er
JSoetens wrote:
What does the script needs to do?

I want the script to open the browser with a predefined url.
Marcuzzo
pollux1er wrote:
JSoetens wrote:
What does the script needs to do?

I want the script to open the browser with a predefined url.


LOL, after 2 years still? Laughing


here you go buddy

open notepad and paste this:

Code:
Dim WShell
Set WShell = createObject("WScript.Shell")
WShell.run ("http://www.google.com" )


save as .vbs eg: browserUrl.vbs and there you go
pollux1er
Thanks very much! It works perfectly.
And finally I can see that it is not really what I expected, but almost that. My aim was to create an executable .exe with an icon appearance. Can you help me do that?
rickylau
pollux1er wrote:
My aim was to create an executable .exe with an icon appearance.
Then you need VB or something else, VBScript can't be used to create executable.
Marcuzzo
pollux1er wrote:
Thanks very much! It works perfectly.
And finally I can see that it is not really what I expected, but almost that. My aim was to create an executable .exe with an icon appearance. Can you help me do that?

try AutoIt, it is an easy script language with VB syntax and you can compile executables.
their helpfile is pretty much complete and it you still get stuck on something, you can check/use their forum

in AutoIt the equivalent of the script I showed you earlier is:
Code:
ShellExecute("http://google.com")
Related topics
What computer languages you know?
Programming
Calling Exe from Webbrowser
free content
HTML/CSS/any means of doing this.
Tutorial portals
ASP Problem
Google Upgrades its Desktop to 2.0
Syndicate Rich Media
What to learn first?
what are the differents between script and language?
writing COM components in Perl
VBScript help for uploading FTP.
Vbscript for downloading files from the internet
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.