Pablo
Member
Registered: 3rd Feb 03
Location: Milton Keynes
User status: Offline
|
Im trying to run a small batch file, but not really too good with dos!
xcopy c:\EW_32b\CSV /e/y x:\Energy Monitor Backup
Basically, the cvs folder and all its contents needs to be backed up to the server every hour!
|
Natalie
Member
Registered: 5th Nov 03
Location: Oxfordshire Drives: Vauxhall Tigra 1.8
User status: Offline
|
Ive got a xmas DO coming up in Dec if that helps
|
chris_uk
Premium Member
Registered: 8th Jul 03
User status: Offline
|
you may find it wont recognise the underscore.
xcopy c:\EW_32b\CSV\*.* x:\ bla bla bla
do a dir/p in c:\ to see what is calls the EW_32b folder.
|
Corsa E-Tec
Member
Registered: 4th Feb 04
Location: Stevenage Drives: Leon Cupra
User status: Offline
|
dos is a sod
|
chris_uk
Premium Member
Registered: 8th Jul 03
User status: Offline
|
actually does does recognise ew_32b ive just done it in dos myself.
soo..
you should be ok with what i put.
|
chris_uk
Premium Member
Registered: 8th Jul 03
User status: Offline
|
quote: Originally posted by Corsa E-Tec
dos is a sod
dos is simple
|
Pablo
Member
Registered: 3rd Feb 03
Location: Milton Keynes
User status: Offline
|
quote: Originally posted by chris_uk
you may find it wont recognise the underscore.
xcopy c:\EW_32b\CSV\*.* x:\ bla bla bla
do a dir/p in c:\ to see what is calls the EW_32b folder.
Invalid number of parameters
|
Corsa E-Tec
Member
Registered: 4th Feb 04
Location: Stevenage Drives: Leon Cupra
User status: Offline
|
i never use it, so the first command i type in is HELP
|
Trotty
Member
Registered: 22nd Feb 01
Location: Bristol
User status: Offline
|
Do you want it to overwrite the contents each time yeah? And supress the overwrite prompt?
|
Pablo
Member
Registered: 3rd Feb 03
Location: Milton Keynes
User status: Offline
|
Yeah thats whats the /y for init?
x:\ is a network drive if that makes any difference?!
Also tried....
x:
cd Energy Monitor Backup
xcopy C:\Test folder /e/y
|
Trotty
Member
Registered: 22nd Feb 01
Location: Bristol
User status: Offline
|
Do a lil batch file like this?
cd \
cd folder
xcopy *.* x:\folder /E /Y /C
|
Nismo
Member
Registered: 12th Sep 02
User status: Offline
|
unix
|
PaulW
Member
Registered: 26th Jan 03
Location: Atherton, Greater Manchester
User status: Offline
|
quote: Originally posted by P4UL
Im trying to run a small batch file, but not really too good with dos!
xcopy c:\EW_32b\CSV /e/y x:\Energy Monitor Backup
Basically, the cvs folder and all its contents needs to be backed up to the server every hour!
xcopy c:\EW_32b\CSV\*.* /e/y "x:\Energy Monitor Backup"
xcopy is still based on 8.3 filenames, and if your running straight in dos - files will only be copied with the 8.3 filename also, not the LFN
If your in windows & use the above command, it will use LFN's, but you still need to put X:\Yababaaa wooo in speechmarks so it KNOWS to keep the LFNs, or it will say invalid paremeters like you got before
[Edited on 16-07-2004 by PaulW]
|
Pablo
Member
Registered: 3rd Feb 03
Location: Milton Keynes
User status: Offline
|
x:
cd Energy Monitor Backup
xcopy C:\"Test folder" /e/y
thanks guy I figured it out, ps managers a cok
|