The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development

Reply
 
Thread Tools Display Modes
Old 09-07-2005, 09:44 AM   #31
Low Bitrate
 
Join Date: Mar 2004
Posts: 89
My Photos: (0)
Well, if you are talking about just copying and not "syncing" then things are even simpler.

Here are you requirements from what I can gather:
New files on USB should be copied to HD
Modified files on USB should be copied to HD
Files should not ever be copied from HD to USB because USB is too small
If both the USB and HD contain the same version of a file, it should not be copied.

The command line package that meets these requirements is:
rsync
s003apr is offline   Reply With Quote
Sponsored Links
Old 09-22-2005, 12:16 AM   #32
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
Went to wal-mart and picked up a 1gb pen drive. If I get any spare time I'll
see what I can come up with.
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-22-2005, 12:24 AM   #33
Registered User
 
aoLhaTer's Avatar
 
Join Date: Mar 2003
Location: Rohnert Park, CA
Vehicle: 04 Infiniti G35 Coupe
Posts: 1,122
My Photos: (0)
I actually pretty much came up with what I need. Totally forgot to update this thread!

Wrote this little C script
Code:
#include <iostream> #include <fstream> #include <Windows.h> #include <stdio.h> #include <cstdlib> using namespace std; int main() { SYSTEMTIME st; GetSystemTime(&st); int test = system("sync.bat"); if( test == -1) { cout << "Cannot execute command"; exit(1); } ofstream outputFile("sync.bat"); outputFile << "ROBOCOPY \"G:\\Music\\Full Albums\" J:\\Music /S /Z /MAXAGE:"; if(st.wHour < 7) st.wDay -= 1; outputFile << st.wYear; if(st.wMonth < 10) outputFile << 0; outputFile << st.wMonth; if(st.wDay < 10) outputFile << 0; outputFile << st.wDay; outputFile << " /W:300"; outputFile.close(); return 0; }

It will first run the synchronization bat (have to create a default one first), then it will rewrite that same bat but with the date that the synchronization just occurred on so on the next synch it only gets files since that date
Then on the carputer side I just have a batch script that will copy all files out of the music folder on the flash drive and into the music folder
__________________
2004 G35 Coupe project

Last edited by aoLhaTer : 09-22-2005 at 12:41 AM.
aoLhaTer is offline   Reply With Quote
Old 09-22-2005, 12:33 AM   #34
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
Well now wtf am I going to do with this pen drive ?
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Old 09-22-2005, 12:37 AM   #35
Registered User
 
aoLhaTer's Avatar
 
Join Date: Mar 2003
Location: Rohnert Park, CA
Vehicle: 04 Infiniti G35 Coupe
Posts: 1,122
My Photos: (0)
Put porn on it?

I feel bad now
__________________
2004 G35 Coupe project
aoLhaTer is offline   Reply With Quote
Old 09-22-2005, 12:37 AM   #36
9 Fingered Administrator
Lesbian
 
frodobaggins's Avatar
 
Join Date: Jan 2003
Location: Ruston, LA
Vehicle: 1998 Ranger/1991 Sunbird
Posts: 9,852
My Photos: (0)
Nah, I always meant to get one. You just gave me an excuse.
__________________
FrodoPlayer.com
TeaBaggins.com
[H]4 Life
My next generation Front End is right on schedule.
It will be done sometime in the next generation.
I'm a lesbian too.
I am for hire!
frodobaggins is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compact flash raid B3AND1P General Hardware Discussion 37 03-13-2008 07:23 PM
Carputer wont power up once Amp is installed Legrath Newbie 6 03-20-2007 10:16 PM
sound quality between carputer going through the HU and carputer going to amp lookinco Car Audio 9 08-07-2005 11:27 AM
carputer install: I dare you... Cat Monkey General MP3Car Discussion 42 01-27-2005 05:34 PM
New CarPuter Suggestion belezeebub General Hardware Discussion 13 12-19-2003 12:43 PM


All times are GMT -5. The time now is 11:38 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics