Can someone help me with a batch file?

All I'm looking to do is put this into a batch file that I can double click and have it run:

I'm not aware of why it's not working. Here is the DOS command

copy C:\Documents and Settings\rmac\Local Settings\Application Data\Microsoft\Outlook\*.pst G:\Administrative\RMac\email
[311 byte] By [Mayhem617] at [2007-11-20 0:45:29]
# 1 Re: Can someone help me with a batch file?
Close. Try...

cd\
cd \Documents and Settings\rmac\Local Settings\Application Data\Microsoft\Outlook
xcopy *.pst G:\Administrative\RMac\email

I will have a moderator move this to OS Issues.
PeejAvery at 2007-11-10 3:40:13 >
# 2 Re: Can someone help me with a batch file?
The spaces in the names of folders might cause erors.
Double quotes should be placed around the names containing spaces:

copy "C:\Documents and Settings\rmac\Local Settings\Application Data\Microsoft\Outlook\*.pst" G:\Administrative\RMac\email

or

copy C:\"Documents and Settings"\rmac\"Local Settings"\"Application Data"\Microsoft\Outlook\*.pst G:\Administrative\RMac\email
olivthill at 2007-11-10 3:41:13 >
# 3 Re: Can someone help me with a batch file?
The spaces in the names of folders might cause erors.
Since it has the folder Documents and Settings it is either Windows XP or 2000. Neither of those have space issues in DOS with folder names.
PeejAvery at 2007-11-10 3:42:17 >
# 4 Re: Can someone help me with a batch file?
copy "C:\Documents and Settings\rmac\Local Settings\Application Data\Microsoft\Outlook\*.pst" G:\Administrative\RMac\email


this method works on XP or at least it did for me. the spaces in the file name could be the issue
cypher5783 at 2007-11-10 3:43:11 >