Page 5 of 7 FirstFirst 1234567 LastLast
Results 41 to 50 of 61

Thread: RR Interchange - Update RR via a USB Media Stick

  1. #41
    FLAC
    Join Date
    Sep 2004
    Posts
    1,577
    Quote Originally Posted by MGD
    Copy \*.mp3 C:\Songs\*mp3 /Y
    As I pointed out earlier in the thread you can make this better by using:
    xcopy /S /D /Y
    to copy only new and changed files. That will save a lot of time.

    Nice find on the usb auto run app.
    Progress: 80% - Permanent install left.
    Motion LS800 Tablet PC and dock.
    Vista, Bu-535 GPS, RoadRunner, MPT2006.

  2. #42
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731

    Smile

    I know that there are many different ways to do that. I just kept it simple so everybody can understand how it works. I think we shold put a sticky together with all the command lines needed for updating with this solution. That would help everybody to automate all the updates needed, no matter what front end or files.

  3. #43
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    MGD, I've been using this app you mentioned in post and I've set it up to run both on my Home PC (which is my Test PC for the Car). The batch file below copies my setup from my HOME PC to the USB drive. Then I install the autorun tool on the car PC and when I plug in the USB drive to the CarPC it copies the stuff off the drive to the CarPC.

    This batch file will sync RR, MM, FD and your music folders (I also have a utils folder wil lots of little apps for the CarPC). Check the folder names in the XCOPY commands below to make sure your folder names are the default ones! Otherwise edit the folder names in the scripts. Once your files are exported from the HomePC to the USB drive the directory structure will be something like:

    \Music
    \Car\RoadRunner
    \Car\FreeDrive
    \Car\DestinatorApps\
    \Car\utils\

    If people want to use it the batch file checks the computer name and if it is "CARPC" then it will import the files from the USB drive. If the computer name is anything other than "CARPC" then it will export your current setup from the harddisk to the USB drive. If your carPC computer name is somethign other than "CARPC" than just change line 4 where the if statement is....


    Code:
    ECHO OFF
    TASKKILL /F /T /IM RR.EXE
    TASKKILL /F /T /IM MapMonkey.EXE
    TASKKILL /F /T /IM FreeDrive.EXE
    
    %SystemRoot%\explorer.exe \
    if %COMPUTERNAME%==CARPC goto CarPC
    
    :Source
    REM for Home PC
    
    REM RoadRunner Folder
    xcopy "C:\Program Files\Road Runner\*" "car\RoadRunner\*" /S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM MapMonkey Folder
    xcopy "C:\DestinatorApps\*" "car\DestinatorApps\*" /S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM FreeDrive
    xcopy "C:\Program Files\FreeDrive" "car\FreeDrive" /S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM Tools and Utilities for CarPC
    REM xcopy "C:\Documents and Settings\Ruairi\Desktop\Car\Utils\*" "car\utils\*"/S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM Music Folder (Hide display while copying)
    xcopy C:\Music\*.mp3 "\Music\*.mp3" /S /D /C /K /Q /I /Y 
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    
    REM "C:\Program Files\Road Runner\RR.exe"
    
    
    ECHO .
    ECHO .
    ECHO USB Drive is now ready to sync with CarPC!!!
    ECHO .
    goto Finish
    
    
    :CarPC
    REM for CarPC
    
    REM RoadRunner Folder
    xcopy "car\RoadRunner\*" "C:\Program Files\Road Runner\*" /S /D /K /I /Y /EXCLUDE:.ini
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM MapMonkey Folder
    xcopy "car\DestinatorApps\*" "C:\DestinatorApps\*" /S /D /K /I /Y /EXCLUDE:.ini
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM FreeDrive
    xcopy "car\FreeDrive" "C:\Program Files\FreeDrive" /S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM Tools and Utilities for CarPC
    REM xcopy "car\utils\*" "C:\utils\*" /S /D /K /I /Y
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    REM Music Folder (Hide display while copying)
    xcopy "\Music\*.mp3" C:\Music\*.mp3 /S /D /C /K /Q /I /Y 
    if errorlevel 4 goto lowmemory 
    if errorlevel 2 goto abort 
    
    "C:\Program Files\Road Runner\RR.exe"
    
    ECHO .
    ECHO .
    ECHO CarPC is up-to-date!!!
    ECHO .
    goto Finish
    
    REM -----------------------
    REM WHEN THINGS GO WRONG!!!
    :lowmemory 
    echo Insufficient memory to copy files or 
    echo invalid drive or command-line syntax. 
    goto exit 
    :abort 
    echo You pressed CTRL+C to end the copy operation.
    REM -----------------------
    
    
    :Finish
    ECHO Finished!!!
    ECHO . 
    ECHO .
    PAUSE
    Thanks UK_MP3Car for starting this and making my updates simple!

  4. #44
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731

    Thumbs up

    This will only work when the application you updating is not running. We should implement the taskkill at beginning of the batch file then update and then start all applications again. Other than that is pretty complete and people can modify it to theire needs. Good Job.

  5. #45
    ITL
    ITL is offline
    Maximum Bitrate ITL's Avatar
    Join Date
    Jul 2004
    Location
    Atlanta, GA
    Posts
    631
    Awesome...thanks to all of you! I've got a good little batch job going, now if I could just automate it...can get my PCs to recognize the autorun.inf on this card I've got
    CarPC #3: 99% Complete
    Pentium M 1.7Ghz, 1GB DDR2 RAM
    DVD/CD-RW installed in dash below monitor
    OEM LCD relocated for 7" Touchscreen
    Wi-Fi, GPS, PS2 controllers...
    500+ full albums
    4,000+ video games
    music videos, movies, & more!
    old carPC

  6. #46
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731
    Quote Originally Posted by ITL
    Awesome...thanks to all of you! I've got a good little batch job going, now if I could just automate it...can get my PCs to recognize the autorun.inf on this card I've got
    Make sure you have AutorunUSB running in sys tray
    Check your drive letter for your USB Stick or SD Card and change it in the autorun.inf.

  7. #47
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    I've updated the batch code to include process kill, error handling and re-starting RR on your CarPC.

    I have not had a chance to bug check what happens if your CarPC runs out of disk space while importing...maybe someone has an idea! I have long forgotten my FORTRAN and BASIC programing techniques...thank god for Java and .Net!

    The one thing that nags me about the script is that if you start RR (or one of the other apps) on your Test PC then it does a complete export of that apps folder. I've looked at playing with DATE /T in DOS to solve this issue but gave up! Does anyone know the files that get updated in RR once it starts, maybe we can exclude them in the XCOPY?

    Maybe doing it in DOS is not a good idea and we should ask UK_MP3Car to continue!

  8. #48
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731
    No files getting UPDATED when RR starts. The batch file quits RR, overwrites the files in the Road Runner directory and the starts RR again. By that time your batch file should not be running anymore. Put EXIT in the last statement of your batch file or EXIT /B

  9. #49
    Constant Bitrate ruairi's Avatar
    Join Date
    Jan 2005
    Location
    Spain
    Posts
    165
    Thanks MGD, script is now updated. Looks like you should have written it!

  10. #50
    MGD
    MGD is offline
    FLAC
    Auto Apps:loading...
    MGD's Avatar
    Join Date
    Feb 2005
    Location
    Los Angeles
    Posts
    1,731

    Cool

    Just pad yourself on the back, you did all the work. Glad to see that your batch works now.

Page 5 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. USB IR stick to COM port??
    By vxcarpc in forum Input Devices
    Replies: 17
    Last Post: 03-20-2008, 07:31 PM
  2. Software Review: Windows XP Media Center 2005 Edition!
    By nFiniteTuning in forum The Review Palace
    Replies: 180
    Last Post: 05-01-2007, 12:54 PM
  3. Problem with ITPS / hibernation and External USB HD
    By veetid in forum Power Supplies
    Replies: 5
    Last Post: 01-02-2006, 09:35 PM
  4. Aver Media USB Radio. Anybody tried it out?
    By DrkStormTrooper in forum General Hardware Discussion
    Replies: 3
    Last Post: 12-28-2004, 04:59 AM
  5. Booting with USB memory stick
    By Fluffy in forum General MP3Car Discussion
    Replies: 12
    Last Post: 10-01-2003, 06:47 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •