Windows 10: mozbackup failing in batch file

Discus and support mozbackup failing in batch file in Browsers and Email to solve the problem; I know that the author is no longer supporting mozbackup. But I'm experiencing a problem that I thought perhaps someone has found a fix for. I run... Discussion in 'Browsers and Email' started by amcgall, Mar 23, 2019.

  1. amcgall Win User

    mozbackup failing in batch file


    I know that the author is no longer supporting mozbackup. But I'm experiencing a problem that I thought perhaps someone has found a fix for.

    I run mozbackup from a batch file with a single line of code: MozBackup.exe default.mozprofile

    default.mozprofile contains instructions telling mozbackup where to store the backup file and other settings.

    The problem I'm having is that after a Windows 10 update a few months ago mozbackup ignores the instructions file. Prior to the update it was working fine under Windows 10.

    I tried running it in compatibility mode but it's still ignoring the instructions file (default.mozprofile).

    :)
     
    amcgall, Mar 23, 2019
    #1
  2. oily_17 Win User

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Mar 23, 2019
    #2
  3. Batch Files Knowledge Base

    Very nice and usefull thanks for contributing.
     
    AphexDreamer, Mar 23, 2019
    #3
  4. fahnix Win User

    mozbackup failing in batch file

    Batch files fail pathing and [%04d]

    1 When running in Administrator mode batch files automatically take on the Windows\System32 folder unless a prefix is added to the top of the file.

    command example: copy file1.txt "C:\Users\Public\Test\."

    result copies file in current folder to "C:\Users\Public\Test\file1.txt"

    result from batch file as admin is an error stating "File not found" because Admin mode attempts to call commands listed in file from [Windows\System32] folder.

    include [cd %~dp0] at top of batch file to ensure commands run from the folder the batch file resides in.

    2 When running ffmpeg.exe in one folder and writing files to another folder from a batch file Windows automatically pastes the entire path and the batch file name prior to every attempted file write.

    ffmpeg command example :

    bin\ffmpeg.exe -i "C:\Users\JoeMatize\Videos\Logitech Webcam\video 3.wmv" -r 15 "frames-%04d.bmp"

    then windows creates 15 frames per second naming files [frames-0001.bmp] through [frames-0015.bmp] for the 1st second and continuing through the entire file

    But ffmCmd.bat file contains the command attempts to create the output file as...

    "C:\_dev\_Video\FFMPeg_Zeranoe\ffmpeg-20160517-git-af3e944-win64-static\ffmCmd.bat4d.bmp"

    ffmpeg fails when it is unable to acquire a new name for the sequential files.

    is there another command that will fix the batch call to ffmpeg, like the one that fixes the administrative mode path?

    When will Microsoft fix the batch files so they work consistently across the board?
     
    fahnix, Mar 23, 2019
    #4
Thema:

mozbackup failing in batch file

Loading...
  1. mozbackup failing in batch file - Similar Threads - mozbackup failing batch

  2. Batch File

    in Windows 10 Software and Apps
    Batch File: Hi, I am trying to create a batch file to determine whether a user account is signed on.I don't have enough experience to get it to @Echo it worked. Any advice please.Batch file:REM Query whether user SBackup is active@echo onsetlocal enabledelayedexpansionset...
  3. Batch Files

    in Windows 10 Gaming
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  4. Batch Files

    in Windows 10 Software and Apps
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  5. Batch Files

    in Windows 10 Network and Sharing
    Batch Files: How do i make it that my batch file puts itself in to startup https://answers.microsoft.com/en-us/windows/forum/all/batch-files/6156404d-20d4-4f58-bee5-14629dbf7b10
  6. Batch mkdir failing

    in Windows 10 Network and Sharing
    Batch mkdir failing: I have a batch file that creates a bunch of folders the problem is, it sometime gets confused.Ex. I make folders 123~1 123~2 and 123~3 but in only creates 123~2 and 123~3 so I try to create a new folder and rename it 123~1 but it tells me 123~3 already exist that is not a...
  7. Is there any MozBackup alternative?

    in Browsers and Email
    Is there any MozBackup alternative?: I have scoured the web and can't seem to find a reliable backup/restore tool for Firefox/Thunderbird Any suggestions? 166373
  8. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  9. batch file fails after upgrade to v2004

    in Windows 10 Support
    batch file fails after upgrade to v2004: The code <<"" nircmd.exe emptybin>> used to clear the content out of the Recycle Bin at startup, but now does not. How might I restore its functionality ? 159331
  10. Batch File

    in Windows 10 Support
    Batch File: I need a batch file to create a folder with sub folders. The sub folders will be named the current date, they will go in a folder on c drive. For example we can call the folder test and it would be in documents on c drive. Every time we run the batch file it would create a...