Hope that email is.. faked.
Yeah - you would have to give more information.
For example..
- Is Outlook open or closed when you are trying to copy it?
- What is the contents of your batch script?
- If it is a scheduled task - what rights does the task have?
- When you run the batch script from the command prompt manually - what
errors do you get?
cronish said:
I guess that was pretty lame, I'm completely new to batch files, took an
online tutorial this morning and a little knowledge is a dangerous thing, I
guess. Anyway, the scripts I tried were all like this:
@echo off
Copy C:\Documents and Settings\G.D. Peters\Local Settings\Application
Data\Microsoft\Outlook\outlook.pst L:
where L: is a "Map Network Drive" location opened directly to the Outlook
folder on the laptop I'm trying to sync with.
I tried both with a batch file and directly with the command line. With
the batch file there is no error message, just no result. With the command
line the error message is always "The system cannot find the file
specified."
Outlook is closed on both boxes when I'm doing this, or else I realize the
.pst file would be inaccessible.
I even tried copying from the Outlook folder to another folder I created
on my C: drive with this script...
copy C:\Documents and Settings\G.D. Peters\Local Settings\Application
Data\Microsoft\Outlook\outlook.pst c:\testbackup\outlook.pst
...both with a batch script and with the command line, and got the same
result, "The system cannot find the file specified."
Where you have spaces (and some other symbols) in a file or pathname, you
need to enclose the name in double-quotes, otherwise the parser simply
interprets the space as an argument-separator and attempts to locate (in
your case) C:\Documents and Settings\G.D. and copy that to Peters\Local
Try
Copy "C:\Documents and Settings\G.D. Peters\Local Settings\Application
Data\Microsoft\Outlook\outlook.pst" L:
(this is all one line, and will likely be wrapped by your newsreader)
Note that this will copy the file to the current directory on L:, not
L:\Documents......
For batch methods discussion for NT/2K/XP, try alt.msdos.batch.nt
HTH
....Bill