Announcement

Collapse
No announcement yet.

How to use %~dp0 or GetParent in VBS

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use %~dp0 or GetParent in VBS

    Hello friends,
    I need help.

    my code;

    [HTML]---------------------------------
    ---------------------------------
    On Error Resume Next
    packageLocation = "\\dc\PublicFiles\agent_x64.msi"
    If packageLocation = "" Then
    packageLocation = DownloadUsingHTTPProxy("\\dc\PublicFiles\agent_x64 .msi", "", "", "", "")
    If packageLocation = "" Then
    Wscript.Quit 30
    End If
    End If
    On Error GoTo 0


    Dim ca_b64: ca_b64 = "xxx"
    Dim product_uuid: product_uuid = ""

    Function GetCollectionCount(collection)
    GetCollectionCount = 0
    On Error Resume Next
    GetCollectionCount = collection.Count
    End Function

    Dim params: params = "/qr /i \\dc\PublicFiles\\agent_x64.msi" &_
    " ALLUSERS=1 REBOOT=ReallySuppress" &_
    " P_CONNECTION_CHOSEN=Host" &_
    " P_HOSTNAME=""app01.konyaalti.local""" &_
    " P_PORT=""2222""" &_
    ---------------------------------
    ---------------------------------[/HTML]


    i will use cmd code %~dp0 or Getparent code but how? { sorry my bad english }


    packageLocation = "\\dc\PublicFiles\agent_x64.msi"
    Dim params: params = "/qr /i \\dc\PublicFiles\\agent_x64.msi" &_

    pls help..
    Last edited by stan0ne; 18th August 2017, 13:41.

  • #2
    pls help...

    Comment

    Working...
    X