PCに複数名を付ける ― 2007年11月12日 12時44分53秒
項目 設定 キー HKEY_LOCAL_MACHINE の\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters 名前 OptionalNames 種類 文字列値(REG_SZ)または複数行文字列値(REG_MULTI_SZ)。別名を1つ定義する場合はREG_SZ、複数定義する場合はREG_MULTI_SZを使用する データ コンピュータ名を表す文字列。複数定義する場合は、REG_MULTI_SZにして、各行に1つずつコンピュータ名を記述
Windows 2000やWindows NTでは、regedt32.exeを使うとREG_MULTI_SZ型を簡単に入力することができる
再起動でOK レジストリー変更なので危険あり Win2000で変更したが問題なかった
VB ファイル更新日の取得 ― 2007年11月13日 19時16分59秒
dim fs as variant
dim f as variant
dim fnm as string
Set fs = CreateObject("Scripting.FileSystemObject")
fnm = "c:\tmp\test.txt"
Set f = fs.GetFile(fnm)
msgbox Format(f.DateLastModified, "yyyy.mm.dd hh:mm:ss")
dim f as variant
dim fnm as string
Set fs = CreateObject("Scripting.FileSystemObject")
fnm = "c:\tmp\test.txt"
Set f = fs.GetFile(fnm)
msgbox Format(f.DateLastModified, "yyyy.mm.dd hh:mm:ss")
最近のコメント