Re: Copying files to another drive

Tech-Archive recommends: Fix windows errors by optimizing your registry



To add a trivial note to what Pegasus said:
A batch file is a plain text file; you can create it with notepad or any text editor.
It may include any of the W2k commands; see Help/ Contents/ Reference/ MSDOS Commands. All syntax rules seen there apply to a BAT file.
Its filename always ends with ".bat".
When executed its behavior is exactly as you would see had you entered those commands in that order in a command window.


Charles L. Phillips wrote:
Hello,
"Thank You"...
Can you recommend a good book on writing batch files???


Thank you, -- Charles L. Phillips



"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:uZZcION7FHA.2628@xxxxxxxxxxxxxxxxxxxxxxx

"Charles L. Phillips" <tptbusines_2205@xxxxxxxxxxx> wrote in message
news:uEM5ZiM7FHA.2676@xxxxxxxxxxxxxxxxxxxxxxx

Hello,
I have a folder containing several files. I have 3 drives, C:\, D:\ &

G:\

(Zip).
The Zip drive copies the folder at a certain of the day.
I want to do an XCOPY /V of the same folder, from the C:\ drive to the

D:\

drive. I want the process to take place everyday during the week (no
weekends) at a specific time of the day. Then I want a message to

"flash",

"XCOPY Of "filename" Completed at "time"...
Can/will someone direct me to a tutorial of this nature???


Thank you, -- Charles L. Phillips

Create a scheduled task (Control Panel / Task Scheduler) and make sure to run the task under the same account as your foreground account.

Place your xcopy command inside a batch file like so:

@echo off
xcopy . . . .
echo.
echo %date% %time:~0,5%: XCopy completed.
echo.
pause






.



Relevant Pages

  • Re: Bash Script (WAS:Re: Suse 9.3 on a desktop replacement)
    ... PerfectReign wrote: ... > I created a batch file called, ... typed commands -- it spanned 30+ batch files and close to 2000 lines. ... you really want user feedback in the form of echo commands (and ...
    (alt.os.linux.suse)
  • Re: Problems running batch file as scheduled task
    ... echo del %WD%\*.txt ... Remove the word "echo" in Lines 3 and 4 to activate the batch file. ... but the scheduled task does not run correctly and ends ... This is not surprising - mapped drives exist ...
    (microsoft.public.windows.server.general)
  • Re: what kind of scripting is this ?
    ... echo Good morning %name% ... Batch files have nothing in common with VB Scripting. ... is far more powerful than batch file programming. ... A batch file consists of a collection of commands ...
    (microsoft.public.scripting.vbscript)
  • Re: total size of files
    ... echo Total=%Total% ... Thanks for picking up the extra colon. ... "dir dir" commands should proably be reduced to just one. ... I note with concern that we're deep into a batch file discussion even though ...
    (microsoft.public.scripting.vbscript)
  • login script
    ... Can you use batch file login scripts when using group ... use commands in a batch file to have drives mapped when ... drives don't map (even though I can manually map the ... Any ideas or do you write the login scripts a different ...
    (microsoft.public.windows.group_policy)