|
|
![]() |
| Thread Tools | Search this Thread |
#1
| |||
| |||
About VBScript Editing What is VBS VBScript is a scripting language developed by Microsoft. The language is a subset of Visual Basic for Applications (VBA). VBScript was used by system operators in the language a powerful tool available for automating the batch files since the 70's existence. VBScript can be used in Active Server Pages in a web environment. The code itself can also be performed on the Windows platform using WScript.exe in a GUI environment or cscript.exe at a command line. The source code is typically stored in files with extension. "Vbs". Finally, the language used in the Internet Explorer web browser as an alternative to Javascript. The latest version of VBScript is version 5.6. What do you need? If you want to create a program in VBS, you need a text editor. Some programs, like notepad + +, support syntax highlighting. If you've written a script, would you run this course. Do you in the following way: - Write the first script - Save this script as a. VBS file - Open the script (double) For help Microsoft MSDN VBScript Wikipedia www.visualbasicscript.com www.intranetjournal.com Start with vbscript: You will need a text editor, for example: -Notepad + + 3.4 (useful for VBS) http://sourceforge.net/project/downl...e_mirror=jaist -Notepad -Wordpad Then: - Make your script ... - Save it as. "VBS" and "All Files" - And it's your own script |
#2
| |||
| |||
Re: About VBScript Editing Instructions / Principles for VBScript A message to: MsgBox "Your message" A message with your own Title X = MsgBox ( "Your text", 1024, "The cup") A Inputbox "make a = inputbox ( "your text") MsgBox "your text" + a "System Beep" Set OWS = WScript.CreateObject ( "WScript.Shell") oWS.Run "% comspec% / c echo" & Chr (07), 0, True CD / DVD player open Set oWMP = CreateObject ( "WMPlayer.OCX.7) Set colCDROMs = oWMP.cdromCollection colCDROMs.Item (i). Eject A folder: 'Delete Set fso = CreateObject ( "Scripting.FileSystemObject") Set aFolder = fso.GetFolder ( "C: \ New") aFolder.Delete Creating a Folder: path = "C: \ New" set filesys = CreateObject ( "Scripting.FileSystemObject") If Not filesys.FolderExists (path) Then Set folder = filesys.CreateFolder (path) End If A Folder / File open: Set WshShell = WScript.CreateObject ( "WScript.Shell") WshShell.Run ( "C: \ Windows") A Registry Value Create / change: Set SHL = CreateObject ( "WScript.Shell") Shl.RegWrite "HKEY_CURRENT_USER \ Control Panel \ Desktop \ Menu Show Delay", "55" (this allows for faster access in Start Menu) A program to open: Set WshShell = WScript.CreateObject ( "WScript.Shell") WshShell.Run ( "notepad.exe") Text to any application: WScript.Sleep 400 WshShell.SendKeys "Your Text" Hotkeys Senden: http://www.autohotkey.com/docs/commands/Send.htm Windows Script to sleep: WScript.Sleep 800 (A short break, the value 800, you can change) Windows to shut down: Set OpSysSet = GetObject ( "winmgmts: ((Shutdown )}//./ root/cimv2). ExecQuery (" select * from Win32_OperatingSystem where Primary = true ") for each OpSys in OpSysSet OpSys.ShutDown () next Just repeat do MsgBox "Hello!" course Script memory fetch (close): 'Then' WScript.Quit |
#3
| |||
| |||
Re: About VBScript Editing I would liki to recommed a good ExeScript Pro VBScript editor with the Code Completion function. Also it can debug, compile and convert your scripts into exe. |
![]() |
|
Tags: vbscript |
Thread Tools | Search this Thread |
|
![]() | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calendar in VBScript | Monty1 | Software Development | 5 | 26-09-2011 12:33 PM |
VBScript for .NET | Bharat89 | Software Development | 3 | 03-12-2009 04:50 PM |
Which is the Best VBScript Editor | GWENDA | Software Development | 4 | 28-09-2009 02:19 PM |
help with vbscript | andrakis2 | Networking & Security | 3 | 24-08-2009 06:13 AM |
How to set the vbscript setgateway | afidelino | Software Development | 3 | 19-08-2009 03:28 PM |