C# Google Chrome History adlı dosyasını listview1'de dosya yolunu gösterme

Katılım
12 Mayıs 2016
Mesajlar
1.548
Çözümler
5
C#:
using System;
using System.Windows.Forms;

namespace WebProtect
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
        }

    }
}
Bu kod üzerinden Google Chrome'un history dosyası yani tarama geçmişi adlı dosyasının yolunu listview1'de gösterebilir misiniz?
 
C#:
using System;
using System.Windows.Forms;

namespace WebProtect.
{
 public partial class Form1 : Form.
 {
 public Form1()
 {
 InitializeComponent();
 }

 private void Form1_Load(object sender, EventArgs e)
 {
 }

 }
}
Bu kod üzerinden Google Chrome'un history dosyası yani tarama geçmişi adlı dosyasının yolunu listview1'de gösterebilir misiniz?

C:\Users\"kullanıcıadı"\AppData\Local\Google\Chrome\User Data\Default burası işine yarayabilir.
 
Biliyorum bunu işte bunu listview1'de göstermeye çalışıyorum.

C#:
SQLiteConnection conn = new SQLiteConnection.
 (@"Data Source=C:\Users\YourUserName\AppData\Local\Google\Chrome\User Data\Default\History");
conn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = conn;
// cmd.CommandText = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;";
// Use the above query to get all the table names.
cmd.CommandText = "Select * From urls";
SQLiteDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
Console.WriteLine(dr[1].ToString());
}

stackoverflow.comdan aldım bu örnek olabilir.

Biliyorum bunu işte bunu listview1'de göstermeye çalışıyorum.

Yapabildiniz mi hocam.
 
Son düzenleme:
C#:
SQLiteConnection conn = new SQLiteConnection.
 (@"Data Source=C:\Users\YourUserName\AppData\Local\Google\Chrome\User Data\Default\History");
conn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = conn;
// cmd.CommandText = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;";
// Use the above query to get all the table names.
cmd.CommandText = "Select * From urls";
SQLiteDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
Console.WriteLine(dr[1].ToString());
}

stackoverflow.comdan aldım bu örnek olabilir.



Yapabildiniz mi hocam.
Hal ettim. Hatta web koruması yapacak düzeye kadar getirdim neredeyse. Teşekkürler kod için. Buna da bakarım.
 

Technopat Haberler

Yeni konular

Geri
Yukarı