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

vbsでレジストリに書き込む

wsh

Option Explicit On Error Resume Next Dim objWshShell ' WshShell オブジェクト Set objWshShell = WScript.CreateObject("WScript.Shell") If Err.Number = 0 Then objWshShell.RegWrite "HKCU\WshTest\Test1", "test #1", "REG_SZ" objWshShell.RegWrite…

wordpressの子テーマの作り方

新規で作るには まず、wp-content/themes/ にフォルダを作る 名前は何でもOK。 その中にstyle.cssを置く。 中身は /* Theme Name: Child Theme // 子テーマ名 Template: xxxxx // 親テーマのディレクトリ名 */ 続いて 以下内容のfunction.phpを作って入れと…

およめちゃんのスタンプ

store.line.me

PHPでブラウザのバージョンを調べる

php

URLをブラウザで開く

mfc

ShellExecute()を使ってURL文字列をopenするだけ bool OpenUrl(LPCTSTR lpszUrl) { HINSTANCE hInst = ShellExecute(NULL,"open",lpszUrl,NULL,NULL,SW_SHOWNORMAL); if(hInst < (HINSTANCE)32){ // 32未満は起動に失敗 return false; } retuen true; } ネタ…