Results 1 to 3 of 3

Thread: About VBScript Editing

  1. #1
    Join Date
    Jan 2008
    Posts
    1,521

    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. #2
    Join Date
    Jan 2008
    Posts
    1,521

    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. #3
    Join Date
    Sep 2009
    Posts
    1

    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.

Similar Threads

  1. Calendar in VBScript
    By Monty1 in forum Software Development
    Replies: 5
    Last Post: 26-09-2011, 12:33 PM
  2. VBScript for .NET
    By Bharat89 in forum Software Development
    Replies: 3
    Last Post: 03-12-2009, 04:50 PM
  3. Which is the Best VBScript Editor
    By GWENDA in forum Software Development
    Replies: 4
    Last Post: 28-09-2009, 02:19 PM
  4. help with vbscript
    By andrakis2 in forum Networking & Security
    Replies: 3
    Last Post: 24-08-2009, 06:13 AM
  5. How to set the vbscript setgateway
    By afidelino in forum Software Development
    Replies: 3
    Last Post: 19-08-2009, 03:28 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,179,171.10594 seconds with 16 queries