Donate Share

DriverBackup!

Subscribe

Command Line Problem

  1. 2009-10-01 01:01:32 UTC

    Vista Home Premium 64-bit SP-1 with DriverBackup!2.0.0

    Works OK using GUI but not with command line generated and used in a batch (see below). Batch results same running it directly or from Task Scheduler.

    Batch cmd window opens and then another window opens, appears to show a program functioning and quickly closes without making a new driver backup.

    Any help would be appreciated. Here is the Command Line:

    "C:\Users\Eric\Desktop\DrvBK2\DrvBK.exe" MODE="BACKUP" BKPATH="C:\Users\Eric\DriverBackup2" BKDESC="All Drivers" BKFILE="Backup %DATE% su %COMPUTERNAME%.bki" BKPATHFTM="Drivers %COMPUTERNAME%_%DATE%" BKDEVFMT="%DEVNAME%" OPT="ARL"

  2. 2009-10-02 22:06:59 UTC

    If I remove OPT="ARL" drivers are saved but not to the folder name defined.

  3. 2009-10-07 15:10:10 UTC

    Results from more testing:

    The Command Line Generator produces an extra space between the different parameters. There should only be one space instead of two between parameters. My new command line is:

    "C:\Users\Eric\Desktop\DrvBK2\DrvBK.exe" MODE="BACKUP" BKPATH="C:\Users\Eric\DriverBackup2" BKDESC="All Drivers" BKFILE="Backup %DATE% from %COMPUTERNAME%.bki" BKPATHFTM="Drivers %COMPUTERNAME% on %DATE%" BKDEVFMT="%DEVNAME%" OPT="ARL"

    This command line expands to:

    "C:\Users\Eric\Desktop\DrvBK2\DrvBK.exe" MODE="BACKUP" BKPATH="C:\Users\Eric\DriverBackup2" BKDESC="All Drivers" BKFILE="Backup Wed 10/07/2009 from i7.bki" BKPATHFTM="Drivers I7 on 10/07/2009" BKDEVFMT="" OPT="ARL" Note that %DEVNAME% is blank and that BKPATHFTM has I7 rather than i7.

    This does generate the following backup and will not generate a second backup if one exists with same name:

    "C:\Users\Eric\DriverBackup2\Drivers I7_10 7 2009" BUT this should be: "C:\Users\Eric\DriverBackup2\Backup 10 7 2009 from i7.bki"

    The backup file name of "Drivers I7_10 7 2009" is the same as would result from a GUI backup if one did not change the defaults. The last time I ran using the GUI I did specify the same file names as my command line and it backed up to that name.

    Any suggestions ?

  4. 2009-10-07 16:09:40 UTC

    Also note that date should be "Wed 10/07/2009" but backup shows "10 7 2009"

  5. 2009-10-07 16:43:08 UTC

    Since %COMPUTERNAME% always expands to "I7" I have used DrvBK.exe to generate a new and shorter command line (extra spaces removed):

    "C:\Users\Eric\Desktop\DrvBK2\DrvBK.exe" MODE="BACKUP" BKPATH="C:\Users\Eric\DriverBackup2" BKDESC="All Drivers" BKFILE="Backup %DATE% from i7.bki" BKPATHFTM="Drivers i7 %DATE%" BKDEVFMT="%DEVNAME%" OPT="AL"

    ==> Note that OPT="AL" was originally "ARL"

    It produces "C:\Users\Eric\DriverBackup2\Drivers i7 10 7 2009" and "C:\Users\Eric\DriverBackup2\Backup 10 7 2009 from i7.bki"

    This will run from Task Scheduler and I will see the results next Friday morning 10/09.

    If that works OK the remaining work would be to have %Date% expand to my system settings.

  6. 2009-10-17 16:43:58 UTC

    Thanks you ebloch for bug reporting. I'm actually working on DriverBackup! to better is code and expecially command-line feature.

  7. 2009-11-18 14:58:28 UTC

    Last night your program find 111 drivers and the log shows only one error on the last entry. Below is partial log.

    I suggest adding run date & time to log header for better ID in log.

    Eric

    DriverBackup! 1.0.0.0
    I7 Microsoft® Windows Vista™ Home Premium
    Microsoft Framework .NET version: v2.0.50727
    Available memory: 9208372 of 12572940 Kbytes.

    Backup started. 111 selected devices.

    Bonzai Xpress
    Class: Portable Devices
    Provider: Microsoft
    Version: 6.0.6001.18000
    Release date: 6/21/2006 12:00:00 AM
    Inf file: wpdfs.inf
    Total files: 2
    --File copy: wpdfs.inf
    --File copy: WpdFs.dll

    Device processed successfully!
    ERR: Cannot read\write backup file.

    Backup completed. Backed up devices: 111 of 111.

  8. 2009-11-18 15:05:29 UTC

    Another program improvement would be to provide a method to limit the number of backup files. Add a parameter like Keep=n where n is the number of backups before the earliest is deleted. N=0 default means no limit. This could also be the limit to the number of run records kept in the log file.
    Eric

  9. 2009-11-18 16:41:10 UTC

    Thank you, a great bug reporter.

    Can you give me more information about limit of backup files?

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.