1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Backup files with batch job needing help

Discussion in 'Other PC Software' started by Sportsaholic, 2008/02/05.

  1. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Hi I am trying to use a batch job in which I am backing up certain files and docs to my CD RW. I found a script to use but I am not sure of the correct syntax so it will back it up there. My D: drive is the destination drive. The following is the script I am using:



    @echo off
    :: variables
    set drive=D:\Backup
    set backupcmd=xcopy /s /c /d /e /h /i /r /y

    echo ### Backing up My Documents...
    %backupcmd% "%USERPROFILE%\My Documents" "%drive%\My Documents "

    echo ### Backing up Favorites...
    %backupcmd% "%USERPROFILE%\Favorites" "%drive%\Favorites "

    echo ### Backing up email and address book (Outlook Express)...
    %backupcmd% "%USERPROFILE%\Application Data\Microsoft\Address Book" "%drive%\Address Book "
    %backupcmd% "%USERPROFILE%\Local Settings\Application Data\Identities" "%drive%\Outlook Express "

    echo ### Backing up email and contacts (MS Outlook)...
    %backupcmd% "%USERPROFILE%\Local Settings\Application Data\Microsoft\Outlook" "%drive%\Outlook "

    echo ### Backing up the Registry...
    if not exist "%drive%\Registry" mkdir "%drive%\Registry "
    if exist "%drive%\Registry\regbackup.reg" del "%drive%\Registry\regbackup.reg "
    regedit /e "%drive%\Registry\regbackup.reg "

    :: use below syntax to backup other directories...
    :: %backupcmd% "...source directory..." "%drive%\...destination dir... "

    echo Backup Complete!
    @pause

    Can someone please help me out in achieving what I am trying to do. I would greatly appreciate any positive help.

    thanks
     
  2. 2008/02/05
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Hi sports

    I will be glad to help but it seems you are doing pretty well.

    Is there a problem?

    For debuging open a CMD prompt and run from there, and I would add a Pause after every line so that I could see any error messages for that line. Untill all worked as expected.

    Only other thing is that you must have a packet writer like INCD etc to allow R/W to a CD. I assume you have that covered.

    Mike
     

  3. to hide this advert.

  4. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Mike, I am getting the following error:

    [img=http://img128.imageshack.us/img128/1620/errorvo7.th.png]

    Also, I do not know anything about INCD. Could you please be kind enough and help me out. I would greatly appreciate it.
     
  5. 2008/02/05
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Ahhh

    You are way off.

    Windows XP can use Drag and drop but windows is doing the job. This can not be done within a batch which executes under the command processor.

    Without Packet writing software it is impossible to write to a cd in a batch or from the command prompt.

    Packet writers allow you to R/W to a R/W cd burner like a floppy or other drive from a batch or command prompt.

    Packet writers are memory hogs in some cases, cause some incompatabilities and are mostly unstable.

    If you want to install a packet writer then your batch should work.

    My suggestion get an now inexpensive USB stick and your bat will work.

    Here is some info for you.

    http://www.willowsoft.com/backup/tech_packetwriting.html

    http://forums.techguy.org/multimedia/565019-burn-rw-cds-dvds-how.html

    http://forums.support.roxio.com/lofiversion/index.php/t14628.html

    I wish I had better news for you. Consider a USB drive.

    Mike
     
  6. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Basically, what I want to do is backup my data and putting it on a cd-rw. I am trying this b4win.exe. What i am doing with it is selecting what I want backed up and making it into a zip file and them I putting it on a cd-rw. Does what I am doing sound correct?
     
    Last edited: 2008/02/05
  7. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Mike, I have NERO on my computer which uses INCD. Would I be able to use that batch job to back up what I want to using that script?
     
  8. 2008/02/05
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9

    That is what I said! INCD has to be installed seperately, is not installed by default. If you do it I would download the newest ver from Nero.

    Unless they have changed INCD will not install in the free version of Nero only a paid version.

    Mike

    To make Sportsaholic a happy camper!!!
     
  9. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    The version of nero was paid for. It is not a free version.
     
  10. 2008/02/05
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    b4win.exe will work as it runs from windows.

    There are many of these free and paid.

    Google free cdrw backup programs

    And newer versions of Nero have a backup program included.

    Mike
     
  11. 2008/02/05
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Mike, Since I have a paid for version of NERO, would I be able to get a newer version for free?
     
  12. 2008/02/06
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    I think not - you can get free updates for your version, but if you want the next, currently Nero 8 you pay :)

    Check out their website for confirmation.
     
  13. 2008/02/06
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    10-4 to what Pete said.

    But if you have any paid (reasonably recent version) Ver 6 up I think, tho
    you may not be able to go to the newest ver of Nero (8). But I think if you download INCD you will get the newest version of NCD!

    Mike
     
  14. 2008/02/06
    noahdfear

    noahdfear Inactive

    Joined:
    2003/04/06
    Messages:
    12,178
    Likes Received:
    15
    It appears to me that your last command in the batch is incorrect as well.

    regedit /e is to export a registry key, however, no registry path has been provided, only the destination.
     
  15. 2008/02/07
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Yeah I really didn't read that line close enough as I figured from start there was no packet writer.

    But it is the reverse that is true.

    Regedit does not need a path to registry it always knows the path to the registry. But the destination must already exist before this line executes and in this case it don't.

    as below
    CMD prompt
    regedit
    will bring up registy without explicit path

    But this line will still fail since the destination does not exist.

    Prior to this line being executed add

    md %drive%\Registry

    Mike
     
  16. 2008/02/08
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    I use this free utility in my backup cmd files for burning to cdrw disks for my clients that want this type of backup:
    CreateCD
    http://isorecorder.alexfeinman.com/CreateCD.htm

    example of one of my client's
    Code:
    @echo on
    rem backup.cmd
    rem copies all Quickbooks files & folders in C:\QBFiles\
    rem to D:\Backup\Datarem then it
    rem copies all Access database files & folders in C:\My Documents\Database\
    rem to D:\Backup\Data
    rem then it
    rem burns all of D:\Backup\Data
    rem to the DVD-CD RW drive E:
    echo START BACKUP OPERATION
    echo.
    echo WOULD YOU LIKE TO BACKUP NOW?
    echo.
    pause
    xcopy  "C:\QBFiles\*.*"  "D:\Backup\Data\" /s/e/h/y/q
    xcopy  "C:\My Documents\Database\*.*"  "D:\Backup\Data\" /s/e/h/y/q
    echo WOULD YOU LIKE TO BACKUP TO CD NOW?
    pause
    start CreateCD -r:F -s:4 -v C:\Backup\Data\*.* 
     
  17. 2008/02/08
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    That is execellent Tony

    INCD has no command line.

    This is an very good way to use a packet writer. I was not aware of this functionality in Create CD.

    I am curious Tony, does this start CreateCD execute the cmd line and exit CreateCD completely when finished or is CreateCD active until next reboot? My opinion it is better if it exits. But is still OK if gone on next reboot.

    Sportsaholic in order for you to use this you will need to replace Nero with Roxio. Make sure you clean up Nero very good first as these 2 progarms will not co-exist as they replace certian cd related functions. Having one and switiching to another even after un-install has caused many a headache. INCD has a INCD cleanup utility because of this. Likely CreateCD does also.

    Then again the purchace price of Roxio and the trouble of it all I still advise a USB Stick.

    But for someone that already has Roxio and wishes to do something like this Tony's answer is the best I have seen.

    Mike
     
  18. 2008/02/08
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Tony, Thank you so much. That worked so awesome. I appreciate it.

    Mike, No I don't. It worked perfectly.
     
  19. 2008/02/08
    mflynn

    mflynn Inactive

    Joined:
    2002/08/14
    Messages:
    4,141
    Likes Received:
    9
    Great!!

    Don't know exactly what you mean
    If you installed Roxio along with Nero and all functions in both progams still work you are very lucky. A Google will show others have had to format/re-install to get CD functionallity back in similar cases.

    Even tho your batch using CreateCD worked, the problem may come with with other functions in either Nero or Roxio or windows general cd/dvd access.

    I'm not being negitive I just want you to be aware, because it is documented to be a problem in "most" cases "!

    I do like the process using CreateCD via command line.:) Thanks again Tony!

    Mike
     
  20. 2008/02/08
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Mike, What I am saying is it backed up what I had perfectly. I then, deleted something and restored it from the CD, working correctly. Simple and easy to use.

    Mike, please don't get mad as I appreciate the help you have given me.
     
    Last edited: 2008/02/08
  21. 2008/02/08
    Sportsaholic

    Sportsaholic Inactive Thread Starter

    Joined:
    2007/02/09
    Messages:
    184
    Likes Received:
    0
    Yesterday I copied the above info and put it in a batch file and it did the following: opened up Nero, brought up my documents folder --- BY ITSELF-- I then selected what I wanted to backup, put CD in cd-rom drive, hit my space bar and it backed up what I selected and then CD_ROM tray opened up and I took ouut the disc and it successfully backed up what I selected.

    Today I tried it again and it could find createcd. I unpacked it onto my C: drive. Any ideas why it didn't do today what it did yesterday? Please let me know. I appreciate any positive help.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.