我如何获得Mozilla Firefox Url历史记录 [英] How I Can Get The Mozilla Firefox Url History

查看:139
本文介绍了我如何获得Mozilla Firefox Url历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 SQLiteConnection conn =  new  SQLiteConnection( @ 数据源= C:\%APPDATA%\Mozilla\FireFox\Profiles\\places.sqlite); 
conn.Open();
SQLiteCommand cmd = new SQLiteCommand();
cmd.Connection = conn;

cmd.CommandText = 选择*来自moz_inputhistory;
使用(SqlDataAdapter sda = new SqlDataAdapter())
{
使用(DataTable dt = new DataTable())
{
sda。补(DT);
dataGridView1.DataSource = dt;
}
}
}



收到错误

解决方案

这取决于Mozilla Firefox设置。请参阅:个人资料 - Firefox存储您的书签,密码和其他用户数据 [ ^ ]

SQLiteConnection conn = new SQLiteConnection(@"DataSource=C:\%APPDATA%\Mozilla\FireFox\Profiles\\places.sqlite");
            conn.Open();
            SQLiteCommand cmd = new SQLiteCommand();
            cmd.Connection = conn;
           
            cmd.CommandText = "Select * From moz_inputhistory";
            using (SqlDataAdapter sda = new SqlDataAdapter())
            {
                using (DataTable dt = new DataTable())
                {
                    sda.Fill(dt);
                    dataGridView1.DataSource = dt;
                 }
               }
  }


am getting the error

解决方案

It depends on Mozilla Firefox settings. See: Profiles - Where Firefox stores your bookmarks, passwords and other user data[^]


这篇关于我如何获得Mozilla Firefox Url历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆