PDA

View Full Version : xcopy in batch file


Joskin
December 5th 03, 07:16 AM
Hi,

Before I log off, I run a batch file which uses XCOPY to backup recently
changed info.

I would like to run this file automatically at logoff and believe that I can
do this with WSH.

How do I call XCOPY from vbs ?

TIA

Joskin

Mike Brannigan [MSFT]
December 5th 03, 07:16 AM
Joskin,

You do not need to call this from VBS, if you have a working script just
use it as your logoff script.
Windows XP supports Start-up/Shutdown and Logon/Logoff scripts.
You can set your logoff script through the local policy editor.

--
Regards,

Mike
--
Mike Brannigan [Microsoft]

This posting is provided "AS IS" with no warranties, and confers no
rights

Please note I cannot respond to e-mailed questions, please use these
newsgroups

"Joskin" > wrote in message
...
> Hi,
>
> Before I log off, I run a batch file which uses XCOPY to backup recently
> changed info.
>
> I would like to run this file automatically at logoff and believe that I
can
> do this with WSH.
>
> How do I call XCOPY from vbs ?
>
> TIA
>
> Joskin
>
>

Joskin
December 5th 03, 07:16 AM
Many thanks Mike

Joskin

"Mike Brannigan [MSFT]" > wrote in message
...
> Joskin,
>
> You do not need to call this from VBS, if you have a working script just
> use it as your logoff script.
> Windows XP supports Start-up/Shutdown and Logon/Logoff scripts.
> You can set your logoff script through the local policy editor.
>
> --
> Regards,
>
> Mike
> --
> Mike Brannigan [Microsoft]
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights
>
> Please note I cannot respond to e-mailed questions, please use these
> newsgroups
>
> "Joskin" > wrote in message
> ...
> > Hi,
> >
> > Before I log off, I run a batch file which uses XCOPY to backup recently
> > changed info.
> >
> > I would like to run this file automatically at logoff and believe that I
> can
> > do this with WSH.
> >
> > How do I call XCOPY from vbs ?
> >
> > TIA
> >
> > Joskin
> >
> >
>
>

Google