This file contains hidden or 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
private void getFilesRecursively(string fullpath, string ftpUser, string ftpPw, DataTable dataTable) | |
{ | |
var credentials = new NetworkCredential(ftpUser, ftpPw); | |
FtpWebRequest listRequest = (FtpWebRequest)WebRequest.Create(fullpath); | |
listRequest.Method = WebRequestMethods.Ftp.ListDirectoryDetails; | |
listRequest.Credentials = credentials; | |
listRequest.EnableSsl = true; | |
List<string> lines = new List<string>(); | |
This file contains hidden or 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
private string getDeviceComport(string vid, string pid) | |
{ | |
var comport = String.Empty; | |
using (var searcher = new ManagementObjectSearcher("SELECT * FROM WIN32_SerialPort")) | |
{ | |
var portnames = SerialPort.GetPortNames(); | |
var ports = searcher.Get().Cast<ManagementObjectSearcher>().ToList(); | |
var port = ports.FirstOrDefault(w => w["PNPDeviceID"].ToString().Contains($"{vid}&{pid}")); |
This file contains hidden or 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
PowerShell.exe -ExecutionPolicy Bypass -File "%~dp0\Set-TaskParallelExecution.ps1" |
This file contains hidden or 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
$newSettings = New-ScheduledTaskSettingsSet -MultipleInstances Parallel | |
Set-ScheduledTask -TaskName "[TaskName]" -Settings $newSettings |
This file contains hidden or 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
Dictionary<string, string> combinations = new Dictionary<string, string> | |
{ | |
{ "ㅗㅏ", "ㅘ" }, | |
{ "ㅗㅐ", "ㅙ" }, | |
{ "ㅜㅓ", "ㅝ" }, | |
{ "ㅜㅐ", "ㅞ" }, | |
{ "ㅡㅣ", "ㅢ" }, | |
{ "ㅜㅣ", "ㅟ" }, | |
{ "ㅗㅣ", "ㅚ" } | |
}; |