I've never been able to find the Desktop to run anything from
For what it's worth, this is the batchfile I use to copy files to my flash
drive to use on my laptop (where I have another batch file to copy them on to
the hard drive there. The file is DSK2FLSH.BAT and the flash drive is drive J:
echo Copying transfer files from Steve's Desktop to Flash ROM
c:
Echo Copying FHS files
e:
cd \Family\Famhist
move *.fil f:\FHSBack
pause
move *.tmp f:\FHSback
move *.ged f:\FHSback
pause
move *.bak f:\FHSback
pause
Echo Copying askSam files
cd \asksam
move *.tmp f:\tempback
move *.bak f:\tempback
move *.sav f:\tempback
cd \inmagic
move *.tmp f:\tempback
move *.bak f:\tempback
Echo Archiving data files
f:
cd \Archives
arj u -r FHSTrans e:\family
arj u -r Inmagic e:\Inmagic
arj u -r Textfile g:\Textfile
arj u -r AskSam e:\asksam
arj u -r rdfFiles e:\paf\rdfdata\*.doc
arj u -r rdfFiles e:\paf\rdfdata\*.dat
arj u -r askSam4 g:\stevedoc\*.ask
arj u -r jotnote g:\stevedoc\*.jot
arj u -r PAF4file g:\stevedoc\*.paf
arj u -r htmldocs e:\html\*.htm
arj u -r htmldocs e:\html\*.jpg
arj u -r htmldocs e:\html\*.gif
arj d Inmagic *.tmp
arj d Textfile *.tmp
bac *.arj j:
Echo Copying Legacy data files
e:
cd \Legacy\Data
move *.tmp f:\tempback
move *.bak f:\tempback
move *.zip f:\tempback
move *.jpg f:\tempback
move *.tmp f:\tempback
move *.doc f:\tempback
bac *.* j:\Legacy\Data
cd \Legacy\Pictures
move *.doc f:\tempback
move *.zip f:\tempback
move *.lnk f:\tempback
bac *.* j:\Legacy\Pictures
j:
cd \Legacy\Data
move *.tmp f:\tempback
move *.bak f:\tempback
move *.zip f:\tempback
move *.jpg f:\tempback
move *.tmp f:\tempback
move *.doc f:\tempback
move *.lnk f:\tempback
cd \Legacy\Pictures
move *.doc f:\tempback
move *.zip f:\tempback
move *.lnk f:\tempback
move *.bak f:\tempback
move *.dat f:\tempback
move *.txt f:\tempback
cd \
c:
cd \windows
bac outlook.pst j:\
e:
cd \Treepad
bac *.hjt j:\
pause
Dir j:
pause
And the one to copy them back again when I've been working on the laptop is
FLSH2DSK.BAT:
echo Copying files from Flash drive to Steve's desktop computer
pause
e:
cd \
arj x -u -y j:asksam
arj x -u -y j:inmagic
arj x -u -y j:FHSTrans
arj x -u -y j:rdffiles
arj x -u -y j:htmldocs
g:
cd \
arj x -u -y j:Textfile
arj x -u -y j:asksam4
arj x -u -y j
AF4file
arj x -u -y j:jotnote
j:
cd \legacy\data
bac *.* e:\legacy\data
cd \legacy\pictures
bac *.* e:\legacy\pictures
cd \
bac outlook.pst c:\windows
bac *.hjt e:\Treepad
pause
exit
As in the OP's question, the BAC.COM command is an old DOS command that only
understands 8.3 filenames.
I use it because it copies files to the destination only when there is a newer
version on the source drive. If the versions are the same it does not copy.
There are also some extraneous move commands. They are there because if I
should type the command when the flash drive is not plugged in, it copies some
files to the wrong directories, and the move command moves them out if it
finds them there. It also moves old backup files.