Advertisement
Guest User

Untitled

a guest
Mar 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (Get-Culture).DateTimeFormat.MonthNames > "C:\kkk\mies.txt"
  2. [string]$str = Get-Content "C:\kkk\mies.txt"
  3. [string]$bez_luty
  4. [string]$luty = $str.Substring(8, 4)
  5. $luty>"C:\kkk\Miesiąc roku przestępnego.txt"
  6. $bez_luty = $str -replace "luty ", ""
  7. echo $bez_luty
  8.  
  9. function<string> iloscDni($a){
  10.     [string] $ret=""
  11.     foreach($mies in $a.Split(" ")){
  12.         $ret = $ret +$mies + $dni
  13.     }
  14.     return $ret
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement