Dos Cmd help plz

Soldato
Joined
9 Aug 2004
Posts
7,795
Location
Milton Keynes
Need to write some commands in a bat files (is that the correct term?) which will be run every night a 2am (via scheduled tasks) to back up files from my docs and some other folders.

Docs Folder : C:\Documents and Settings\Blackwell\My Documents

Other Folder : H:\

Backup drive : F:\

Now the questions

a) How do i put spaces into a dos command?

b) Is Xcopy the correct command

c) Which switches would i use so it only copies over files that have been changed since last back up

d) Can i also copy my website files aswell?

My Guess to start off;

XCOPY C:\Documents%and%Settings\Blackwell\My%Documents\*.* F:\Docs /E /U

No idea about the website one though
 
FishThrower said:
why dont you use Windows backup?

Because i cant find it in xp?

BigBoy said:
What do you mean about copying the website? if you mean uploading there is a comand line ftp program that will upload from the command prompt. But you need to explain more to be able to tell you what you need to do. Also if you mean downloading and copying to a safe location this is also possible.

Well erm, I want to copy files off my website, from the net to my pc, they are in the http part not the ftp bit if that helps
 
FishThrower said:
huh?

Windows backup is in Start - Accessoires - System Tools

Seems a bit pointless if you want to do a .bat file for just simply backing up something

where.JPG


Where?
 
FishThrower said:
didnt know that anyone used XP Home :p


i think you can copy over the .EXE for winbackup from Pro and run it in Home if you find someone with XP Pro installed

%SystemRoot%\system32\ntbackup.exe

From a google seems i can get it off my xp cd

cheers i'll give that a go
 
Back
Top Bottom