Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

Open Folders/Directories

Description
This script will open the list of folders you specify in the directories variable.
Language
C#.net
Minimum Version
Created By
Shallan Rambaran
Contributors
-
Date Created
5d ago
Date Last Modified
5d ago

Scripted Function (Macro) Code

using System;
using System.Diagnostics;
using System.Collections.Generic;

public static class DisplayFusionFunction
{
	public static void Run(IntPtr windowHandle)
	{
		// A list containing the file paths of the directories you want to open
		List<string> directories = new List<string>
		{
			@"D:\Tutorials & References\Django 4 and Python Full-Stack Developer Masterclass (12.2021)",
		};

		// Goes through the list and...
		foreach (var directory in directories)
		{
			// if the directory exists...
			if (System.IO.Directory.Exists(directory))
			{
				// open the directory in File Explorer
				Process.Start("explorer.exe", directory);
			}
			// if the directory does not exist then nothing happens.
		}
	}
}