Furthermore, if you want to backup from a directory rather than a root drive, I would combine the features of the SUBST command (you will need the SUBST.EXE file on your boot disk or some accessible path, as the SUBST command is also external).
Assumming LASTDRIVE is set accordingly, you could use the following:
For example, lets assume the directory on your laptop which you want to rescue is:
"c:\backup\archive\dir"
Then (for example - I use "x" in the subst command below. You can use any drive letter as long as the bootdisk has LASTDRIVE set >= the drive letter). Also, you did not specify what media you would be copying the data to. Let's assume it's another harddrive in the system or perhaps a removable drive (such as a ZIP or some other USB or Firewire device) and it's drive letter assigned by the boot disk is "F:"
A:> subst x: c:\backup\archive\dir"
A:> xcopy /s x: f:
The commands above should do as you like. If The drive "F:" has stuff on it already, you may wish to create a seperate folder on the drive and use yet another SUBST to alias the directory, for example:
A:> cd f
F:> md rescue
F:> cd rescue
F:\rescue> subst y: .
F:\rescue> a:
A:> xcopy /s x: y:
--
Hope this helps you,
mrdtn
Main Topics
Browse All Topics





by: mrdtnPosted on 2003-12-02 at 17:05:57ID: 9863240
Not using COPY. You will need XCOPY.EXE with the "/S" option. Check to see if XCOPY is on your boot disk.