Re: Backup a file on a workstation and then shut down



No, xcopy won't use shadow copy techniques. About your second
question: Why not open a Command Prompt and type xcopy /?
to see for yourself what the switches mean? Server administrators
often do this!


"Mr. JYC" <MrJYC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9B4C7B46-EA0A-488A-9672-D858F47D56D7@xxxxxxxxxxxxxxxx
Thank you Pegasus. Would the file copy use Volume Shadow Copy? I am
trying
to back up .pst files. If Outlook is open, the files can't be copied
because
the program is holding on to them. Also, can the xcopy command overwrite
the
file without prompting?

--
Thank you for your help!
JYC


"Pegasus (MVP)" wrote:


"Mr. JYC" <MrJYC@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:44944BB3-1173-424D-90C6-1F7537E6D449@xxxxxxxxxxxxxxxx
Hello,

What would be required to backup a file from a workstation to a server
then
to have the workstation shut down automatically upon backup?

I have tried task scheduler and along with Windows backup. I have also
tried SyncToy. Though they seem to work, it seems that there should be
some
type of scripting to achieve the shut down part.

Could someone help me with this?

--
Thank you for your help!
JYC

Why use backup.exe? An ordinary "copy" command is easier
to use and makes file recovery a breeze. And a batch file would
be a much simpler solution than a script file.

@echo off
xcopy /d /y /c "\\SomePC\SomeShare\SomeFolder\*.mdb" d:\Data\
shutdown \\SomePC -s -f





.



Relevant Pages

  • Re: Batch File Problem
    ... >> batch file is using xcopy and the manual copy used copy. ... >There is no difference between running a command from the ... >Command Prompt or running it inside a batch file. ...
    (microsoft.public.windowsxp.general)
  • Re: Batch Files
    ... from a command prompt, you'll get: ... Xcopy is now deprecated, ... The command xcopy was replaced with robocopy, alter your batch accordingly and see if this helps. ...
    (microsoft.public.windows.vista.general)
  • Re: Read Only
    ... Start -> All Programs -> Accessories - Command Prompt ... 'attrib' without any parameters will display a directory list of the files in the current directory and what attributes they have set. ... For more information about archive attributes and xcopy, ...
    (microsoft.public.windowsxp.general)
  • Re: how do I get to MS-DOS?
    ... using Xcopy - you can set flags to ignore errors and keep on copying, ... To get to the "DOS" window, now known as the Command Prompt, the easiest way ...
    (microsoft.public.windowsxp.help_and_support)
  • Release : ComLog 1.0, a WIN32 command prompt logger
    ... a WIN32 command prompt logger ... DOS sessions on Windows NT/2K (should also work on XP, ... This tool can be used by administrator to keep a history of commands ... typed in the DOS command prompt and the associated output, ...
    (Focus-IDS)

Loading