2016-11-01から1日間の記事一覧

PowerShellで文字列操作

http://hiros-dot.net/PowerShell/stringMenu.htm

PowerShellでLeft,Right,Midをしたい場合・Substring

Mid $abc.Substring(5, 6)ネタ元 http://win.just4fun.biz/PowerShell/PowerShell%E3%81%A7Left,Right,Mid%E3%82%92%E3%81%97%E3%81%9F%E3%81%84%E5%A0%B4%E5%90%88%E3%83%BBSubstring.html#w63c72ed

Powershell で文字コードを変更する(clip.exe へのリダイレクトもね)

# S-JIS に変更 $OutputEncoding = [Console]::OutputEncoding # US-ASCII に戻す $OutputEncoding = New-Object System.Text.ASCIIEncodingclip.exe にリダイレクトすると クリップボードに送れるネタ元 http://www.vwnet.jp/Windows/PowerShell/CharCode.h…

powershellでshit-jisでのファイル出力

Encoding Defaultでshift-jis "弁士" | Out-File -FilePath test.txt -Encoding Default ネタ元 http://webcache.googleusercontent.com/search?q=cache:7vgKnej7QQkJ:bbs.wankuma.com/index.cgi%3Fmode%3Dal2%26namber%3D61122%26KLOG%3D102+&cd=2&hl=ja&ct…

【Chrome Developer tools】$_POSTの中身を見る

web

$_POSTでなにを送っているのか見ることができます。 フォームのあるページを開く Ctrl+Shift+i でDeveloper toolsを立ち上げる Networkタブに切り替え Recording Network Logボタンをクリック クリックで赤くなり、Recording開始。 フォームに入力し、Submit…

Powershellのinvoke-webrequestを使ってファイルのダウンロード POST送信でもなんでもできるさ!

Invoke-RestMethod -Uri "http://localhost:8080/myapp/mydomain/myaction/" -Method POST -Body "id=2014&filename=0609.csv&format=json"ネタ元 http://bakemoji.hatenablog.jp/entry/2014/01/02/144102http://qiita.com/_y_u_/items/94dd8ad6fcc8d278f433

PowerShellからIEを操作

http://qiita.com/fujimohige/items/5aafe5604a943f74f6f0 http://www.webessentials.biz/powershell/powershell_autologin/