![]() ![]() Var icon = (Icon)Icon.FromHandle(info.hIcon).Clone() // Get a copy that does not use the original handleĭestroyIcon(info. ![]() SHGetStockIconInfo(type, SHGSI_ICON | size, ref info) Info.cbSize = (uint)Marshal.SizeOf(info) Public static Icon GetStockIcon(uint type, uint size) $refAsm = if( $ -le 5 ) Īdd-Type -ReferencedAssemblies $refAsm -TypeDefinition System With a few adjustments I got the code from that C# question to work under both PowerShell 5.1 and 7.2.6. It's used to visualize storage space on a hard drive. This PC > Local Disk (C:) > Users > Select one folder (Such as Pictures) Move each folder separately (OneDrive folder cannot be moved) > Right click to open Properties > Location > Paste the corresponding folder path that you created on the other disk in the first step (Such as F:UsersaccountPictures) > Move. WinDirStat is a disk usage statistics viewer and cleanup tool for various versions of Microsoft Windows. The question I got all this from includes a GetStockIcon function definition, but I keep getting errors trying to include it saying The type or namespace name 'Icon' could not be found (are you missing a using directive or an assembly reference?) I have a program called WinDirStat that uses a tree icon. Theres a note under Option 2: ' If you do not have the Shell Icons key, then right click or press and hold on the Explorer key, click/tap on New, click/tap on Key, type Shell Icons for the name, and press Enter. ![]()
0 Comments
Leave a Reply. |