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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[int]$A | |
) | |
[int]$C1 = 0 | |
[int]$C5 = 0 | |
[int]$C10 = 0 |
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
function myfunc([int]$n) | |
{ | |
if ($n -gt 0) { Write-Host $n ; myfunc($n-1) } | |
} |
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 | |
SETLOCAL EnableDelayedExpansion | |
SET /A FIBO_MAX=4000000 | |
SET /A FIBO_A=1 | |
SET /A FIBO_B=2 | |
SET /A FIBO_TMP=0 | |
SET /A FIBO_E_SUM=0 | |
SET FIBO_LIST=List.txt |
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 method A. | |
rem When %date% variable is used, the output may different according to system locale. | |
rem So use method B instead of A, because method A's not recommended. | |
rem echo %date%-%time% | tr -d \r\n| tr -d [:space:] | clip | |
rem method B. | |
rem udate.exe, tr.exe is part of GNU Win32 tools. | |
rem udate.exe (renamed from date.exe to avoid confusing with date command on Windows O/S) |
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
omreport storage pdisk controller=0 -fmt ssv ` | |
| select -Skip 4 | ConvertFrom-Csv -Delimiter ";" ` | |
| ft Name,Progress,Revision,'Product Id' -AutoSize | |
Name Progress Revision Product ID | |
---- -------- -------- ---------- | |
Physical Disk 0:1:0 Not Applicable GS10 ST4000NM0023 | |
Physical Disk 0:1:1 Not Applicable GS10 ST4000NM0023 | |
Physical Disk 0:1:2 Not Applicable GS10 ST4000NM0023 |
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
# get-koalra-files.ps1 | |
# Retrieve .pptx files from Koalra Server | |
# | |
# Author : GiSeong Eom <[email protected]> | |
# Created: 2012-06-22 | |
# Updated: 2013-03-16 | |
# ChangeLog | |
# v0.2 Updated for SC2012 LAB files | |
# v0.1 Originally written |
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 | |
SETLOCAL | |
IF #%1# == ## ( | |
GOTO :usage | |
) ELSE ( | |
GOTO :main | |
) | |
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
#requires -version 2 | |
# 1. 시스템 OS명 -- OsName:"Windows" | |
$OsName = Get-WmiObject Win32_OperatingSystem | Select-Object -ExpandProperty caption | |
# 2. 시스템 OS 상세버젼 -- OsVersion: | |
# Get-WmiObject Win32_OperatingSystem | Get-Member | |
# Get-WmiObject Win32_OperatingSystem | Format-List * | |
$OsVersion = Get-WmiObject Win32_OperatingSystem | Select-Object caption,OSArchitecture,CSDVersion,MUILanguages | |
$OsVersionValue = $OsVersion.caption + ' ' + $OsVersion.OSArchitecture + ' ' + $OsVersion.CSDVersion + ' ' + $OsVersion.MUILanguages |
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 | |
reg delete HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\PreviewHandlers /v {00020827-0000-0000-C000-000000000046} /f | |
reg add HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\PreviewHandlers /v {00020827-0000-0000-C000-000000000046} /t REG_SZ /d "Microsoft Excel previewer" |
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 | |
IF #%1# == ## ( | |
GOTO :usage | |
) ELSE ( | |
GOTO :selection | |
) | |
:selection | |
IF /I %1 == cygwin GOTO :cygwin |
OlderNewer