Open a Specific Folder Using DIAdem VBScript

Updated Apr 16, 2021

Reported In

Software

  • DIAdem

Issue Details

After saving the data to a folder using DIAdem VBScript, I want to open the folder and visually check if the data was actually saved. Is there a way to open a specific folder using VBScript?

Solution

You can open the specified folder by first changing the folder path section of the script below to the path of the specific folder you want to open, and then executing the script. 
Option Explicit
Dim objShell, fn
fn = "C:\Users\user\Desktop\test\"
Set objShell = CreateObject("Shell.Application")
objShell.Explore fn
Set objShell = Nothing