How to Use Convert.Frombase64string in VBS

104 3
    • 1). Right-click the VBS file you want to edit. Choose "Open With," then click "Notepad." VBS files can be edited with Notepad, which is freely available in Windows. If you have a more advanced editor, click the third-party editor instead, and then click "Open" to view the VBS code.

    • 2). Scroll down the file to the location of the string you want to encode. The function throws an error if the string is null or empty, so ensure you place the function after the code that sets the string's value.

    • 3). Type the following code to encode your string:

      Dim binConversion() As Byte

      binConverstion = System.Convert.FromBase64String(mystring)

      Replace "mystring" with the name of your own string. This code converts "mystring" and stores the bytes in the variable named "binConversion."

    • 4). Press "Ctrl + S" to save the VBS file changes. To check the new changes, double-click the VBS file to execute it on your computer.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.