2015年12月8日 星期二

股市數據抓取

部落格
---
一些方法,可參考!!

使用Yahoo/Google API取得歷史股價資料

AnyDesk 2.1.0 - 速度最快最流暢的遠端桌面連線軟體下載

官網:AnyDesk - The World's Fastest Remote Desktop Application

vbnet process cmd result 回傳值

Public Function Cmd(ByVal Command As String) As String
      Dim process As New System.Diagnostics.Process()
      process.StartInfo.FileName = "C:\Windows\System32\cmd.exe"
      process.StartInfo.UseShellExecute = False
      process.StartInfo.RedirectStandardInput = True
      process.StartInfo.RedirectStandardOutput = True
      process.StartInfo.RedirectStandardError = True
      process.StartInfo.CreateNoWindow = True
      process.Start()
      process.StandardInput.WriteLine(Command)
      process.StandardInput.WriteLine("exit")
      Dim Result As String = process.StandardOutput.ReadToEnd()
      process.Close()
      Return Result
End Function


Dim result As String
result = Cmd(“ipconfig”)
Debug.Print(result)

2015年12月3日 星期四

vb.net kill process by exe

參考引用來源:How to kill any process using VB.NET
--
For Each prog As Process In Process.GetProcesses
        If prog.ProcessName = "ProcessName" Then
                prog.Kill()
        End If
    Next

說明:
ProcessName   --> 執行檔 exe 檔  ,檔名 (不含 .exe)  

2015年12月2日 星期三

mssql 附加 唯讀

參考引用來源:SQL Server 2005附加資料庫變"唯讀"
--
選擇 dbName.mdf 跟 dbName_LOG.ldf 這兩個檔案
點選 滑鼠右鍵 ->選擇 內容
選擇 安全性
點選 新增  加入 SQLServerMSSQLUser$user$SQLEXPRESS 這個使用者
或許可以解決唯讀問題