Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:47:45+00:00 2026-05-28T02:47:45+00:00

Not familiar with windows stuffs.. , I’m trying to write a little MS Windows

  • 0

Not familiar with windows stuffs.. , I’m trying to write a little MS Windows batch in order to backup firefox history but I’m not getting the expected result, eg the firefox history dump into a file (not implemented here), and can’t figure out why and how to solve. Instead I get a dump of the database in a new window. Here is what I’ve done till now :

cmd windows terminal

start "TEST" sqlite.cmd

sqlite.cmd

REM backup firefox history
setlocal
set DB_src=places.sqlite
set DB_dest=places1.sqlite
set FF_profile=C:\Documents and Settings\User_A\Application Data\Mozilla\Firefox\Profiles\1e6xxxxx.default
set SQLITE_EXE=C:\Documents and Settings\Admin_User\SoftWare\sqlite3.exe
set SQLITE_SQL=C:\Documents and Settings\Admin_User\Bureau\sqlite.sql
copy "%FF_profile%\%DB_src%" "%FF_profile%\%DB_dest%"
@echo off
start "%SQLITE_EXE%" "%FF_profile%\%DB_dest%" < "%SQLITE_SQL%"
endlocal

sqlite.sql

.dump html
.output moz_places.html
SELECT moz_places.visit_count, moz_places.url FROM moz_places ORDER by visit_count DESC LIMIT 20;

[EDIT]:
Worked around :
– using the right sqlite query (updated in sqlite.sql below)as for these examples.
– using the sql html output “moz_places.html” as I could not get the redirection work.
linux stuffs are easier for me…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:47:46+00:00Added an answer on May 28, 2026 at 2:47 am

    This question is lame, because it involves three completely unrelated domains: firefox, sqlite, and batch files. You should have isolated the problem by determining whether this is a firefox issue or an sqlite issue or a batch file issue and then you should have come up with a question regarding the domain in which the issue lies, with absolutely no mention to the other domains.

    I am going to give you an answer as best as I can regarding batch files:

    First of all, you need to stop needlessly using the start command and just invoke things directly. So, instead of:

    start "%SQLITE_EXE%" "%FF_profile%\%DB_dest%" < "%SQLITE_SQL%"
    

    You need this:

    "%SQLITE_EXE%" "%FF_profile%\%DB_dest%" < "%SQLITE_SQL%"
    

    Then, you need to redirect the output of the above command into a file of your choice. For this, you need to make use of the ‘>’ operator. So:

    "%SQLITE_EXE%" "%FF_profile%\%DB_dest%" < "%SQLITE_SQL%" > myfile.txt
    

    That should do it, as far as batch files are concerned. If it does not do it, then it is a firefox or sqlite issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly, I am not at all familiar with Windows batch file programing. Recently I
I am not familiar with this website but I am desperately seeking help with
I'm not familiar with ADO.NET Data Services but it looks usable. All I need
I'm not familiar with Java but I need to make a request to a
I'm not familiar with Hudson or OSX, I'm just trying to find out if
Some solution could probably be applicable to Windows, however I am not familiar with
I am not familiar with this, and can use a kick start. I am
I am not familiar with PHP at all and had a quick question. I
I'm not familiar at all with JQuery and I'm not very good with CSS,
I'm not familiar with the semantics of the -@ in the bash script snippet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.