Creating a batch file..

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Creating a batch file..
# 1  
Old 02-19-2009
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  
Old 02-19-2009
how about using something like this:
DeltaCopy - Rsync for Windows
?
# 3  
Old 02-19-2009
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  
Old 04-03-2009
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  
Old 04-03-2009
Thank you, but i already managed to solve my problem Smilie
# 6  
Old 05-31-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Renaming file in batch

Hi guys, I need a script to change the file names e.g.:- below are the mentioned files, i want t0 change the last character of the name 00000.cdr with e.g bep01.smsc.191214210500-00000.cdr to bep01.smsc.191214210500-92311.cdr next file be like bep01.smsc.191214210500-92312.cdr # ls -ltr... (9 Replies)
Discussion started by: mfaizan40
9 Replies

2. Shell Programming and Scripting

Executing a batch of files within a shell script with option to refire the individual files in batch

Hello everyone. I am new to shell scripting and i am required to create a shell script, the purpose of which i will explain below. I am on a solaris server btw. Before delving into the requirements, i will give youse an overview of what is currently in place and its purpose. ... (2 Replies)
Discussion started by: goddevil
2 Replies

3. UNIX for Advanced & Expert Users

batch file

Hi all I am using tru64 Unix and I want a ready batch file which makes me to change all user passwords at the same time ,instead of changing everyone separately. Please could anyone help me to do that. bye. (1 Reply)
Discussion started by: ahmedbashir
1 Replies

4. Shell Programming and Scripting

Batch file to remove double quotes from a file

Hi I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file. For eg.If input file name is abcd.csv and contents is : "asasd,123123,213213,asd" "esfrf,dsfsdf,234324,sdfsdf" Then the batch file should remove "" from the... (11 Replies)
Discussion started by: akashtcs
11 Replies

5. UNIX for Dummies Questions & Answers

/bin/sh for creating batch file....?

hi to aLL... I'm just new here in the forum...anyway, im currently using /bin/sh for creating some batch file or scripts...it's just the same...anyway, is it advisable to use it in creating batch file....? thanks... :p (0 Replies)
Discussion started by: m0njasper
0 Replies

6. UNIX for Advanced & Expert Users

rename the file in batch

In my dir there are files like a.xml b.xml abnc.xml 12.abc.xml 12.anc.sfoioi.xml I need to remove .xml from all the files Is there any direct way without using any for/do loop Right now i am using for file in * do ... (7 Replies)
Discussion started by: reldb
7 Replies

7. Programming

batch file

what is a command to call a batch file from a c++ program when called with the argument which is a text file, then how to print that text file on a printer. please help me with code if possible (3 Replies)
Discussion started by: ramneek
3 Replies

8. IP Networking

batch file

my requirment is i have to call a batch file from a c++ program that batch file is called with the argument as print.txt print.txt is a text file which should get printed on printer (any printer) when a batch file call is made 1) how to call a batch file in c++ 2) how to print the text... (1 Reply)
Discussion started by: ramneek
1 Replies

9. UNIX for Dummies Questions & Answers

Creating a batch file.

I'm very new to unix and for the most part make my way around but I need to know how to create a batch file that can be ran at scheduled time. The main function of the file will be to copy files to different locations then FTP to a different server. Please help. I you have an example that would be... (2 Replies)
Discussion started by: spotanddot
2 Replies
Login or Register to Ask a Question