How to use %~dp0 or GetParent in VBS

Home Forums Scripting Windows Script Host How to use %~dp0 or GetParent in VBS

This topic contains 1 reply, has 2 voices, and was last updated by  Isocrate 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • stan0ne
    Member
    #167155

    Hello friends,
    I need help. :(

    my code;

    [HTML]



    On Error Resume Next
    packageLocation = “\dcPublicFilesagent_x64.msi”
    If packageLocation = “” Then
    packageLocation = DownloadUsingHTTPProxy(“\dcPublicFilesagent_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 \dcPublicFiles\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 = “\dcPublicFilesagent_x64.msi”
    Dim params: params = “/qr /i \dcPublicFiles\agent_x64.msi” &_

    pls help..


    Isocrate
    Member
    #391855

    pls help…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.