Page 4 of 4 FirstFirst 1234
Results 31 to 36 of 36

Thread: Suggestion for USB flash syncing to carputer

  1. #31
    Low Bitrate
    Join Date
    Mar 2004
    Posts
    89
    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

  2. #32
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    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.
    [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!

  3. #33
    FLAC aoLhaTer's Avatar
    Join Date
    Mar 2003
    Location
    Rohnert Park, CA
    Posts
    1,122
    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

  4. #34
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Well now wtf am I going to do with this pen drive ?
    [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!

  5. #35
    FLAC aoLhaTer's Avatar
    Join Date
    Mar 2003
    Location
    Rohnert Park, CA
    Posts
    1,122
    Put porn on it?

    I feel bad now

  6. #36
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Nah, I always meant to get one. You just gave me an excuse.
    [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!

Page 4 of 4 FirstFirst 1234

Similar Threads

  1. compact flash raid
    By B3AND1P in forum General Hardware Discussion
    Replies: 37
    Last Post: 03-13-2008, 07:23 PM
  2. Replies: 6
    Last Post: 03-20-2007, 10:16 PM
  3. Replies: 9
    Last Post: 08-07-2005, 11:27 AM
  4. carputer install: I dare you...
    By Cat Monkey in forum General MP3Car Discussion
    Replies: 42
    Last Post: 01-27-2005, 05:34 PM
  5. New CarPuter Suggestion
    By belezeebub in forum General Hardware Discussion
    Replies: 13
    Last Post: 12-19-2003, 12:43 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
  •