English 中文(简体)
bat窗
原标题:windows batch sqlite backup firefox history

I m不熟悉窗户,试图写上很少的MSWindows batch,以便支持火灾fox历史,但Im没有取得预期结果,把火ox史丢到档案中(此处没有执行),能够说明为什么以及如何解决。 相反,我把数据库放在一个新的窗口中。 这里是我迄今所做的工作:

碎窗户终端

start "TEST" sqlite.cmd

qlite.cmd

REM backup firefox history
setlocal
set DB_src=places.sqlite
set DB_dest=places1.sqlite
set FF_profile=C:Documents and SettingsUser_AApplication DataMozillaFirefoxProfiles1e6xxxxx.default
set SQLITE_EXE=C:Documents and SettingsAdmin_UserSoftWaresqlite3.exe
set SQLITE_SQL=C:Documents and SettingsAdmin_UserBureauqlite.sql
copy "%FF_profile%\%DB_src%" "%FF_profile%\%DB_dest%"
@echo off
start "%SQLITE_EXE%" "%FF_profile%\%DB_dest%" < "%SQLITE_SQL%"
endlocal

qlite.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 qlite.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...

最佳回答

这个问题是 la的,因为它涉及三个完全无关的领域:火f、q和批量档案。 你们应该把这个问题孤立起来,确定这是否是一个烟雾问题,还是一个q子问题,或者一个批量档案问题,然后,你应该提出问题所在领域的问题,绝对不用提及其他领域。

我将给你最好的回答,我可以回答一下批量档案:

首先,你需要毫不必要地停止使用<条码>><>>><>>指令,并直接援引物品。 因此,而不是:

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

你们需要:

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

然后,你需要将上述指挥系统的产出转至你选择的档案。 为此,你需要利用经营者。 因此:

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

就批量卷宗而言,应当这样做。 如果它不这样做,那就是一个烟雾或烟.问题。

问题回答

暂无回答




相关问题
Backing up my database is taking too long

On a windows mobile unit, the software I m working on relies on a sdf file as it s database. The platform that the software is targeted towards is "less than optimal" and hard resets every once and a ...

Cognos LAE Backup Automation (Batch File?)

Within Cognos 7.4 security.. one would create an LAE file to export all their users... directions here... http://www.cognos-install.co.uk/articles/backups/access_manager_export_to_lae.asp Now you ...

backup SQL Server 2005 database without data

I have one stored procedure to backup the database. It will backup metadata as well as data. Is there any option to back up the database with out data. ie, back up only the schema (Empty tables). I ...

SQL Server 2008 Auto Backup

We want to have our test servers databases updated from our production server databases on a nightly basis to ensure we re developing on the most recent data. We, however, want to ensure that any fn, ...

mysql dump stops when a row is updated

When i try to get a dump of a mysql database, the dump stops when a row in it is updated. How can i prevent that? I already tried following options with no result: -f (forces continu even when error)...

热门标签