Rules for “Date Modified” of folders in Windows Explorer

Disclaimer: I tested all of these myself on Windows 10. I could not find an authoritative source documenting all of these behaviours. It is entirely possible that I made a mistake somewhere. The folder’s last modified time is updated for these actions: new file or folder directly in target folder renamed file or folder directly … Read more

How add context menu item to Windows Explorer for folders [closed]

In the registration editor (regedit.exe) find: Context menu for right click on folders in left panel of Windows Explorer or on background of a directory in right panel: HKEY_CLASSES_ROOT\Directory\Background\shell if you are administrator HKEY_CURRENT_USER\Software\Classes\directory\Background\shell if you are a normal user Context menu for right click on folders in right panel of Windows Explorer: HKEY_CLASSES_ROOT\Directory\shell if … Read more

Opening a folder in explorer and selecting a file

// suppose that we have a test.txt at E:\ string filePath = @”E:\test.txt”; if (!File.Exists(filePath)) { return; } // combine the arguments together // it doesn’t matter if there is a space after ‘,’ string argument = “/select, \”” + filePath +”\””; System.Diagnostics.Process.Start(“explorer.exe”, argument);

Open a folder using Process.Start

Have you made sure that the folder “c:\teste” exists? If it doesn’t, explorer will open showing some default folder (in my case “C:\Users\[user name]\Documents“). Update I have tried the following variations: // opens the folder in explorer Process.Start(@”c:\temp”); // opens the folder in explorer Process.Start(“explorer.exe”, @”c:\temp”); // throws exception Process.Start(@”c:\does_not_exist”); // opens explorer, showing some … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)