![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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! |
|
||||
|
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. |
|
||||
|
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 | ||
|
|