Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET Coming Soon: GET:IT Endpoint Management 1-Day Conference on September 28th at 9:30 AM ET

How to use %~dp0 or GetParent in VBS

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

Viewing 1 post (of 1 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..

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

Live Webinar: Active Directory Security: What Needs Immediate Priority!Live on Tuesday, October 12th at 1 PM ET

Attacks on Active Directory are at an all-time high. Companies that are not taking heed are being punished, both monetarily and with loss of production.

In this webinar, you will learn:

  • How to prioritize vulnerability management
  • What attackers are leveraging to breach organizations
  • Where Active Directory security needs immediate attention
  • Overall strategy to secure your environment and keep it secured

Sponsored by: