Windows Batch File Help

N3cTr0

Active Member
Joined
Jun 25, 2006
Messages
35
Reaction score
0
Location
Rustenburg
Curious to know, I'm trying to create a batch file that creates a folder with the current date, and then copies certain directories into that new dated folder. How would i go about doing that? I will then add that batch to windows scheduler to have it run daily so i can have a daily backup of whats in those folders.

If someone could help me with that i would appreciate it. Also if there is another way or a program that does what I'm asking please could you let me know about it.
 
mkdir c:\tst1\%DATE%
copy c:\test2\*.* c:\tst1\%DATE%
 
Thanks for the response. I'll try both methods and choose one that better suits me.
 
I want to write a log file that writes the date and time that I log into my pc to a file. I'll put it in the startup to run everytime i log in, but I need it to write to the same log file and add a line at the bottom of the file.

Any ideas?
 
Something like in a timedate.bat:
Code:
@echo off
echo %DATE% %TIME% >> <path>\t.txt
 
Top
Sign up to the MyBroadband newsletter
X