This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Security.Cryptography.X509Certificates; | |
namespace ListCertificates | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var store = new X509Store(StoreName.My, StoreLocation.LocalMachine); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM This closes the active session of Putty to allow the log files to be modified and waits 2 seconds | |
taskkill /F /IM putty.exe | |
ping -n 2 -w 1000 127.0.0.1 > nul | |
REM This makes a copy of the latest log appending todays date to the file name and waits 2 seconds | |
copy "X:\Users\Common\TestLog.log" "X:\Users\Common\TestLog_%DATE:/=%.log" | |
ping -n 2 -w 1000 127.0.0.1 > nul | |
REM Manually create a blank log file in the same directory call Blank.Log |