The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Windows & DOS: Issues & Discussions
.
google unix.com



Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
/bin/sh for creating batch file....? m0njasper UNIX for Dummies Questions & Answers 0 10-02-2008 03:34 AM
rename the file in batch reldb UNIX for Advanced & Expert Users 7 01-14-2008 06:43 PM
batch file ramneek High Level Programming 3 11-09-2005 05:48 AM
batch file ramneek IP Networking 1 11-08-2005 11:09 AM
Creating a batch file. spotanddot UNIX for Dummies Questions & Answers 2 06-26-2001 04:45 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-19-2009
hule hule is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 3
Creating a batch file..

Hello, this is my first post and i hope you can solve my problem.

I need to create a batch file that will copy folder from hard drive on to usb stick on daily basis.

Can you help me and write that file and explaine me what to do next.

Folder's location is: c\windows\desktop\2009

Thank you very much!
  #2 (permalink)  
Old 02-19-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,910
how about using something like this:
DeltaCopy - Rsync for Windows
?
  #3 (permalink)  
Old 02-19-2009
hule hule is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 3
hmm.. No. it's to complicated for me. I have one computer and all i want is to copy directory from one folder to usb stick on a daily basis.
  #4 (permalink)  
Old 04-03-2009
eskiphill4 eskiphill4 is offline
Registered User
  
 

Join Date: Oct 2008
Location: Pacific Northwest
Posts: 12
The USB stick will usually appear as a set drive, say E:

A simple copy statement may do the trick

copy c:\windows\desktop\2009\*.* E:

This will cause all the files (*.*) to be copied to the root of E:. This may not be what is desired as it will prompt for overwrites. You may want these files in a specific directory on the USB stick and other possible variations.
  #5 (permalink)  
Old 04-03-2009
hule hule is offline
Registered User
  
 

Join Date: Feb 2009
Posts: 3
Thank you, but i already managed to solve my problem
  #6 (permalink)  
Old 05-31-2009
CRGreathouse CRGreathouse is online now
Registered User
  
 

Join Date: Mar 2009
Posts: 101
In case someone else comes across this, the 'right' command is xcopy (or even robocopy in Vista). It's designed for copying whole directory structures like this, and can be set to ignore unchanged files and the like.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

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



All times are GMT -4. The time now is 09:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0