Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. VBScript Pseudo-Reflection(?) [modified]

VBScript Pseudo-Reflection(?) [modified]

Scheduled Pinned Locked Moved Visual Basic
question
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MStanbrook
    wrote on last edited by
    #1

    Is it possible for a VBScript (i.e. test.vbs) to actually know it is called "test.vbs"? I seem to recall something in VB Using "Application" "object" for finding out that kind of stuff. ~Mike Stanbrook

    modified on Saturday, January 22, 2011 10:21 AM

    D D 2 Replies Last reply
    0
    • M MStanbrook

      Is it possible for a VBScript (i.e. test.vbs) to actually know it is called "test.vbs"? I seem to recall something in VB Using "Application" "object" for finding out that kind of stuff. ~Mike Stanbrook

      modified on Saturday, January 22, 2011 10:21 AM

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      WScript.Echo WScript.ScriptName

      RageInTheMachine9532

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        WScript.Echo WScript.ScriptName

        RageInTheMachine9532

        M Offline
        M Offline
        MStanbrook
        wrote on last edited by
        #3

        Thanks. ~Mike Stanbrook

        1 Reply Last reply
        0
        • M MStanbrook

          Is it possible for a VBScript (i.e. test.vbs) to actually know it is called "test.vbs"? I seem to recall something in VB Using "Application" "object" for finding out that kind of stuff. ~Mike Stanbrook

          modified on Saturday, January 22, 2011 10:21 AM

          D Offline
          D Offline
          daluu
          wrote on last edited by
          #4

          Adding a related question to this thread: Assuming you don't know it (all or at all) after importing VBScript code, or instantiating a COM object, is there any way to get a list of methods (and perhaps properties) of a VBScript class and/or COM object (built from C/C++ or Visual Basic)? Basically something like .NET reflection for VBScript/COM.

          "A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible." - Freeman Dyson

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups