Hey Guys.
How can I exclude a directory (like the "skins" directory in RR) from being copied to the usb device
I tried the exclude option but cannot get it to work.
Any help would be deeply appreciated
Thanks
Printable View
Hey Guys.
How can I exclude a directory (like the "skins" directory in RR) from being copied to the usb device
I tried the exclude option but cannot get it to work.
Any help would be deeply appreciated
Thanks
tolisn:
Add this to the line that copies the Road Runner folder to the USB drive: /EXCLUDE:\skins\ that should stop the XCOPY going into ANY folder called skins.
So the line should look something like:
xcopy "C:\Program Files\Road Runner\*" "car\RoadRunner\*" /S /D /K /I /Y /EXCLUDE:\skins\
You may want to change the RR line on your CarPC so it also ignores the skins folder if it is on the USB drive:
xcopy "car\RoadRunner\*" "C:\Program Files\Road Runner\*" /S /D /K /I /Y /EXCLUDE:.ini+\skins\
OK thanks
Hi all.
I'm trying to get this working on my PC. I am running into a couple problems with the batch file and I don't know much about how they work. I've tried troubleshooting and changing things around but still can't get it going like it should.
First problem: Taskkill is not recognized. It pops up errors for the lines saying it doesn't know that command. I got it to keep going once and it went through the RR update.
Second problem: Keeps saying it can't find the batch label specified. I think this has to do with the Music transfers since the RR update did work one time (but not since then). I would like to be able to add a folder of music to the usb drive, and then when I transfer it, have the autorun take all folders in the Music directory on the USB drive and put them in the Music directory on the carPC. What should the Xcopy line look like for that?
Third Problem: Every time I insert the usb drive on the carpc, Autorun starts and Windows pops up a message asking what I would like to do with the files (ie: Play them in Win Media Player, Open them in Windows Explorer, etc., or Take No Action). I have to hit cancel every time, even if I hit Take No Action it will still pop up next time. Anyone know a way to get around this and make it stop happening?
Thanks for any help you guys can give me!!
Cheers.
EDIT: Forgot to mention this before, but doesn't RR only update with like 3-4 files? Is it really necessary to copy the whole directory?
Thanks.
If anyone is using the AutoRunUSB program, I got a couple batch files that are working well.
I have 2 different files, one is autorun.bat (launched when the drives is in my home PC) and autoruncar.bat (launched when in the car). I did this because my computers were having a hard time with the goto Carpc command and it was an easy fix to make 2 files.
I added a delete command in the autoruncar.bat so that after files had transferred it would then empty the media folders (just music and movies, not the RR files) so that next time I needed to transfer files the drive was "unloaded" and ready.
Here they are:
autorun.bat:
autoruncar.bat:Code:ECHO OFF
REM Road Runner
xcopy "C:\Program Files\Road Runner\*.*" "G:\car\Road Runner\*.*" /S /D /K /I /Y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
REM Music/Movies Transfer
xcopy "C:\My Music\To Transfer\*.*" "G:\*.*" /S /D /K /I /Y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
ECHO .
ECHO .
ECHO USB Drive is now ready to sync with CarPC!!!
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
exit
MY PROBLEM:Code:ECHO OFF
REM RoadRunner Folder
xcopy "D:\car\Road Runner\*.*" "C:\Program Files\Road Runner\*.*" /S /D /K /I /Y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
REM Music Folder (Hide display while copying)
xcopy "D:\music\*.*" "C:\Music\*.*" /S /D /K /I /Y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
REM Movies Folder (Hide display while copying)
xcopy "D:\movies\*.*" "C:\movies\*.*" /S /D /K /I /Y
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
REM Delete Transferred Media
del D:\movies\*.* /Q /S
del D:\music\*.* /Q /S
ECHO .
ECHO .
ECHO CarPC is up-to-date!!!
ECHO .
"C:\Program Files\Road Runner\RR.exe"
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 .
exit
The original bat file that Ruari made had TASKKILL commands that would exit the apps being updated (in my case I only need RR closed when I use the carPC). He has XP Pro and I have Home. My XP does not recognize TASKKILL as a command and is not able to close the apps.
Does anyone know of other commands to use instead that XP Home edition will recognize? Or a list of commands that I can go through and find one that works?
Thanks.
ed.
Aparently tskill is available on XP home. give that a try. I cannot confirm though as i have pro on all my XP machines.
Jas
Quote:
Originally Posted by edrex
Used tskill /? on a cmd prompt and it came up with a list of switches. Thanks!! I'll try to use that to get the programs closed.Quote:
Originally Posted by neo_in_aus
Cheers.
Would this program work with something other than RoadRunner? (such as Centrafuse)
edit:
Read through the thread and see that people have favored using the posted batch file
My problem with batch files is that the music copy process isnt advanced enough. I need a copy method that will somehow know what files Ive already transferred to the carputer then only copy new files since the last transfer.
xcopy can only do it by a static date and robocopy is a little better and can do it by X days old but neither are good enough
This program works with any program any folder, hell you can even format your harddrive with it.
Anyone thought of using IOMEGAs activedisk ?
http://www.iomega-activedisk.com/
there is a developer SDK.