Re: Batch file
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Thu, 2 Jun 2005 10:19:44 +1000
"George Schneider" <georgedschneider@xxxxxxxxxxxxxx> wrote in message
news:9FA34A58-A4AE-4376-9B62-FB03A3C53AF7@xxxxxxxxxxxxxxxx
> I need some help on this one. I want to copy all files from my C:\test
to
> G:\Backup. In addition I want to create a text file that displays the
date
> and time started and date and time finished. I want to script using a
batch
> file.
>
Try this:
@echo off
echo Copy process started on %date% at %time% > c:\Log.txt
xcopy /y c:\test g:\backup\ >> c:\Log.txt
echo Copy process ended on %date% at %time% >> c:\Log.txt
.
Relevant Pages
- Re: Returning a value from a VBScript
... VBScript for use by another script, batch file, or other command. ... echo MyScript.vbs returned an ErrorLevel of %ErrorLevel% ... (microsoft.public.scripting.vbscript) - Re: How to STOP file - a command line & script - where do you put it to work?
... That batch is for a very specific problem. ... that in and tell it which folders to change the names in? ... I'm a PC user, not a software, java or script> writer. ... > This is the script that was given: > @echo off ... (microsoft.public.windowsxp.general) - Re: How to STOP file - what is a command line & script?
... That batch is for a very specific problem. ... I'm a PC user, not a software, java or script writer. ... > @echo off ... > type nul> %temp%.\process.bat ... (microsoft.public.windowsxp.general) - Re: How do I change default permissions for shares?
... Doing a batch would mean ... Explorer so the only thing you need to is type in the share name the script ... If your share name is always the folder name or the folder name with ... @echo off ... (microsoft.public.windowsxp.security_admin) - Re: batch script question
... > I recently encountered a question on batch command, ... > the script result which I expect is that the 1st and 2nd echo output would ... (microsoft.public.win2000.general) |
|