systemnotes org Location: System Notes / download / Dos / Backx

Help for Aspiring Sysadmins

Linux / Open Source / Howto / Tips & Tricks

Language: bat | en
 






Latest News

2009.07.29
RHCE Flash Cards Released

2008.01.11
Website Design Updated. This is a work in progress...

2008.01.11
RHCE Study Guide Removed due to a potential copyright issue

2007.12.03
RHCE Study Guide Released

 

Links:



Do you find this site useful?

donate









Spread Firefox Affiliate Button

Documents


backx

Batch File to copy files to multiple diskettes, by using the archive bit


Download iconbackx.bat (617 Byte)




Source Code:

@echo off
:backx.bat by Scott McClelland
: copyright (c) 1992 - released to the public domain
:batch file for backing up files using xcopy so that files
: will be copied to consecutive diskettes, and be readable.
cls
echo.
echo.
if %1!==! goto help
attrib *.* +a
xcopy %1 %2 /v/s/e/m
echo resetting archive bit....
attrib *.* +a
echo.
echo Back up complete.
goto end
:help
echo Program requires parameters "source", and "destination".
echo.
echo    %0 {SOURCE} {DESTINATION}
echo.
echo e.g.
echo.
echo    %0 c:\programs a:\bkup1
echo.
echo.
echo Be sure to have enough formatted diskettes ready before running.
:end

Full color HTML version: backx.bat.html

back
DOS Batch Files