none
How to know vbsscript itself show state? RRS feed

Answers

  • HI Jrv

    Thanks!

    I know how to run under hide, minimize or maximize, but the script how to know itself show state?

    For example, A vbscript run B vbscript, then how can the B vbscript know itselft show state? Hide,normal,minimized or maximized

    It can't be done with VBScript.


    ¯\_(ツ)_/¯

    • Marked as answer by Unknown32 Tuesday, August 12, 2014 2:56 AM
    Tuesday, August 12, 2014 2:44 AM

All replies

  • VBScript:

    How to know vbs itself show state?

    I can use "run" to run a vbs with SW_HIDE(0), but how to let vbs know itself show state

    DIM objShell   
    set objShell=wscript.createObject("wscript.shell")   
    iReturn=objShell.Run("Test.vbs", 0, TRUE)

    "State"?  State of what?  Do you mean "status" or "error"?


    ¯\_(ツ)_/¯

    Monday, August 11, 2014 2:27 AM
    • Edited by Unknown32 Monday, August 11, 2014 6:05 AM
    Monday, August 11, 2014 6:03 AM
  • Change:

    iReturn=objShell.Run("Test.vbs", 0, TRUE)

    To:

    iReturn=objShell.Run("Test.vbs", i, TRUE)


    ¯\_(ツ)_/¯

    Monday, August 11, 2014 6:12 AM
  • HI Jrv

    Thanks!

    I know how to run under hide, minimize or maximize, but the script how to know itself show state?

    For example, A vbscript run B vbscript, then how can the B vbscript know itselft show state? Hide,normal,minimized or maximized

    Tuesday, August 12, 2014 2:30 AM
  • HI Jrv

    Thanks!

    I know how to run under hide, minimize or maximize, but the script how to know itself show state?

    For example, A vbscript run B vbscript, then how can the B vbscript know itselft show state? Hide,normal,minimized or maximized

    It can't be done with VBScript.


    ¯\_(ツ)_/¯

    • Marked as answer by Unknown32 Tuesday, August 12, 2014 2:56 AM
    Tuesday, August 12, 2014 2:44 AM