Download VBScript Basics _Part 13 (Special Folders) video

Download VBScript Basics _Part 13 (Special Folders) video on savevid.com

Download VBScript Basics _Part 13 (Special Folders) streaming video in flv, mp4, avi formats direct easily on Savevid.com.

 

VBScript Basics _Part 13 (Special Folders)

  • Share:
                    
  • Provider: YouTube Link: http://www.youtube.com/watch?v=M3BUqZwAmFM
  • Rate: Please rate this video Views: 0 Downloads: 1
  • Description: Part 13 Of the Series. 3:55
    VBScripting (.vbs) Basic Tutorial on how to use Special Folders. This is useful if your running/installing something on a computer where you don't know the User's name. This tutorial also covers the 'Replace' function, and uses it to get the current directory the script is running in.


    C0de ExAMpLe:
    --------------------------
    Copy & Paste into Notepad.
    --------------------------------------------------------------------------------­----------------------------
    Option Explicit
    Dim Obj, Path

    Set Obj = CreateObject("WScript.Shell")
    Path = Obj.SpecialFolders("In the List")

    Wscript.Echo Path


    'Run something that's in that directory.
    'For example a program, file, or folder.
    Obj.run Path & "\something here"



    ' ------- List of Special Folders -------

    'AllUsersDesktop
    'AllUsersStartMenu
    'AllUsersPrograms
    'AllUsersStartup
    'Desktop
    'Favorites
    'Fonts
    'MyDocuments
    'NetHood
    'PrintHood
    'Programs
    'Recent
    'SendTo
    'StartMenu
    'Startup
    'Templates
    --------------------------------------------------------------------------------­----------------------------
    Original Song Credit:

    relaxdaily:
  • Tags: , , , , , , , , , , , , , , , , , , , , , , shell:desktop
  • Category: Flag video Educational, Celebrity Videos