Results 1 to 2 of 2

Thread: Can someone help me to convert this .bat code into VBScript ?

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jan 2022
    Posts
    1

    Can someone help me to convert this .bat code into VBScript ?

    Can someone help me to convert this .bat code into VBScript ?

    Code:
    :: Variables
    set RULE_NAME=PDF
    set PROGRAM=C:\Program Files\PDF\pdf.exe
    netsh advfirewall firewall add rule name="%RULE_NAME%" dir=in action=block profile=any program="%PROGRAM%"
    netsh advfirewall firewall add rule name="%RULE_NAME%" dir=out action=block profile=any program="%PROGRAM%"

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,423

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width