Skip to content

Instantly share code, notes, and snippets.

@MyITGuy
MyITGuy / create_send_to_send_to.ps1
Created June 4, 2014 22:03
PowerShell: Create Send To shortcut in the Send To folder.
$sendToPath = "$env:USERPROFILE\AppData\Roaming\Microsoft\Windows\SendTo"
$shortcutPath = "$sendToPath\SendTo.lnk"
try {
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut($shortcutPath)
$Shortcut.TargetPath = "$($sendToPath)"
$Shortcut.Description = "Send shortcut to this folder"
$Shortcut.Save()
"Shortcut created successfully"
return
@attilah
attilah / X.Y.Z.Sources.csproj
Last active April 18, 2024 08:52
X.Y.Z.Sources nuget package
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<TargetFramework>netstandard1.0</TargetFramework>
<IsPackable>true</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<ContentTargetFolders>contentFiles</ContentTargetFolders>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
</Project>
@danielcrenna
danielcrenna / PackagePrep.csproj
Last active November 21, 2019 17:10 — forked from attilah/X.Y.Z.Sources.csproj
X.Y.Z.Sources nuget package (with pre-processor transformations support)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
</Project>
@RickStrahl
RickStrahl / ColorConsole.cs
Last active March 30, 2024 16:00
Color Console - a simple class to add color to .NET Console commands more easily.
using System;
using System.Text;
using System.Text.RegularExpressions;
namespace MainColorConsole
{
class Program
{
static void Main(string[] args)
{