Results 1 to 7 of 7

Thread: Tip

  1. #1
    Newbie
    Join Date
    Mar 2005
    Posts
    23

    Tip

    Heres summit i done during the week.
    I have a thumb drive so when its plugged into the laptop in the car it appears as 'e' drive.
    so create a batch file that is run as a startup program


    xcopy e:\batch\music\*.* "C:\My Documents\My Music\" /s /e /c /h /k /r
    xcopy e:\batch\movies\*.* "C:\My Documents\My movies\" /s /e /c /h /k /r

    Put the two lines above into a text file and save as filename.bat (save type as all files in note pad)

    Now all i gotta do is put my music on the pen-drive in the batch\music folder

    and for movies put it in the batch\movies folder.

    Once the car boots it will copy all the new stuff across.
    Saves having to plug in lan and i find the wireless network unreliable


    i dont actually know what command to delete the files off the thumb drive once finished without prompting to type y or N (if anyone knows can you let me know)

    Well thats my tip

    Damo784

  2. #2
    Variable Bitrate gameboy's Avatar
    Join Date
    May 2005
    Location
    Elizabeth City, NC
    Posts
    294
    Quote Originally Posted by damo642
    Heres summit i done during the week.

    i dont actually know what command to delete the files off the thumb drive once finished without prompting to type y or N (if anyone knows can you let me know)

    Well thats my tip

    Damo784
    put this in your batch file:
    echo Y>c:\yes
    del e:\batch\music\*.* <c:\yes
    del e:\batch\movies\*.* <c:\yes
    del c:\yes <c:\yes


    what this does is
    line 1: redirect the output of the echo (Y) to the file c:\yes
    line 2-4: redirect input from file c:\yes to program

    used to work really good back in the day.(some times i miss MSDOS v2)
    95 Mazda Protege LX
    Worklog
    Overall [Project Dead] 0%

    2003 Nissan Altima
    [XXXXXXXX--] 80% Planning
    [XX--------] 20% FABRICATION/INSTALLATION

    Worklog

  3. #3
    Newbie
    Join Date
    Mar 2005
    Posts
    23

    tip

    the del command above does not work because i not only want to delete files but also folders and subfolders.(thats why i used xcopy to move folders and subfolders)

    Do you know a way of doing this

    Damo784

  4. #4
    Maximum Bitrate psyrex's Avatar
    Join Date
    Jun 2005
    Location
    Oakland, CA
    Posts
    531
    use "deltree", i think.

    -psyrex
    Gen 1: Pentium 3 1GHz - ATX - 2005
    Gen 2: Pentium M 1.6GHz - ITX - 2006
    Gen 3: Pentium M 2.0GHz - 5.25" SBC - 2007
    Gen 4: (coming soon: Core2 Duo - 3.5" SBC - 2009)
    ...it never ends

  5. #5
    Variable Bitrate gameboy's Avatar
    Join Date
    May 2005
    Location
    Elizabeth City, NC
    Posts
    294
    Quote Originally Posted by psyrex
    use "deltree", i think.

    -psyrex
    he might not have deltree not sure if they had it past windows 98. i know it is not shipped with xp pro.

    if you find a copy of it somewhere, might even be under "support tools" elsewhere, or do a for it.
    95 Mazda Protege LX
    Worklog
    Overall [Project Dead] 0%

    2003 Nissan Altima
    [XXXXXXXX--] 80% Planning
    [XX--------] 20% FABRICATION/INSTALLATION

    Worklog

  6. #6
    Variable Bitrate gameboy's Avatar
    Join Date
    May 2005
    Location
    Elizabeth City, NC
    Posts
    294
    i think you can try this also

    del e:\batch <c:\yes
    mkdir e:\batch


    in place of the other del commands
    95 Mazda Protege LX
    Worklog
    Overall [Project Dead] 0%

    2003 Nissan Altima
    [XXXXXXXX--] 80% Planning
    [XX--------] 20% FABRICATION/INSTALLATION

    Worklog

  7. #7
    Newbie
    Join Date
    Mar 2005
    Posts
    23
    Nope Deltree is not part of windows xp pro
    Need some other ideas to delete abitrary files and folders

Similar Threads

  1. Tip for safer touch-screen usage
    By Nesvik in forum Input Devices
    Replies: 6
    Last Post: 08-23-2005, 05:46 PM
  2. whistle tip! no i get it!
    By Scouse Monkey in forum Off Topic
    Replies: 18
    Last Post: 12-19-2004, 07:02 PM
  3. Pioneer AV Headunits... a tip
    By MegatronUK in forum LCD/Display
    Replies: 0
    Last Post: 12-03-2004, 02:44 PM
  4. Espresso tip polarity
    By MegatronUK in forum Power Supplies
    Replies: 2
    Last Post: 12-01-2004, 06:26 AM
  5. A tip for speeding up win98 start
    By darkwingduck in forum Software & Software Development
    Replies: 1
    Last Post: 05-09-2000, 07:51 AM

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
  •