Here you go an automatic file copier & even if the drive does not exist no error is made enjoy (Bob)


[ Follow Ups ] [ Post Followup ] [ CPU-Central Message Board ] [ Home ]

Subject: Here you go an automatic file copier & even if the drive does not exist no error is made enjoy (Bob)
Name: Bob
Date: 2/7/2001 2:28:08 PM (GMT-7)
IP Address: 24.11.117.176
In Reply to: how to write a dos batch file for automatic file update? posted by Dude
Message:

@echo off
rem called copyfile.bat this checks the Hard Drive C:, D:, E:,F: partitions &
rem be run from anywhere HD or floppy & is an automatic file copier &
rem no inputs are needed
rem if want this on auto bootup from floppy name this file autoexec.bat

if exist C:\subdir\foobar.com copy A:\foobar.com C:\subdir\foobar.com
if exist D:\subdir\foobar.com copy A:\foobar.com D:\subdir\foobar.com
if exist E:\subdir\foobar.com copy A:\foobar.com E:\subdir\foobar.com
if exist F:\subdir\foobar.com copy A:\foobar.com F:\subdir\foobar.com
echo.
echo Done Now (can not verified that the copied file is newer or older & same for destination)

[ View FollowUps | Post Followup | E-Mail Sender | Main ]


[No follow-ups for this posting]

Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:
Upload some images for this post


[ Follow Ups ] [ Post Followup ] [ CPU-Central Message Board ]