|
server
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
script for scheduled backing up local content files to the network file storage
Dear all,
I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan A batch file would be considerably simpler:
@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan thanks very much pegasus..
I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Your request is unclear.
- What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan leme explain...
In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan When you require a script then it helps to provide plenty of
background information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!?
"Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan This is incorrect. Xcopy is alive and well. Robocopy is
an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.
and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.
Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan just an FYI... here is one of hundreds of articles found on MS and MSDN websites explaining that xcopy is indeed deprecated.... see? you learn something new every day
http://blogs.msdn.com/matt_pietrek/archive/2007/01/16/robocopy-built-into-vista.aspx "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eBy7Bo$LIHA.4712@TK2MSFTNGP04.phx.gbl... It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan I love to learn new things. At the same time I note that the text you quote refers to Vista. I also note that the word Vista is conspicuous by its absence in the OP's subject, text and list of newsgroups. Furthermore, robocopy is not even included in Win2000/XP/Server - it has to be downloaded with the Windows Resource Kit. In other words, for the OP's platforms xcopy is the standard and robocopy is a nice add-on.
I fully agree with you when it comes to the Vista platform: xcopy is a legacy product. For the other platforms, xcopy is widely used and works well in the vast majority of cases. I am also aware of its limitation. "Joe D" <n@n.com> wrote in message news:e6p9CyBMIHA.1168@TK2MSFTNGP02.phx.gbl... just an FYI... here is one of hundreds of articles found on MS and MSDN websites explaining that xcopy is indeed deprecated.... see? you learn something new every dayhttp://blogs.msdn.com/matt_pietrek/archive/2007/01/16/robocopy-built-into-vista.aspx "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eBy7Bo$LIHA.4712@TK2MSFTNGP04.phx.gbl... It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan try this one:
http://technet2.microsoft.com/windowsserver2008/en/library/76a310d7-9925-4571-a252-0e28960d5f891033.mspx?mfr=true "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uYe%23a%23BMIHA.3940@TK2MSFTNGP05.phx.gbl... I love to learn new things. At the same time I note that the text you quote refers to Vista. I also note that the word Vista is conspicuous by its absence in the OP's subject, text and list of newsgroups. Furthermore, robocopy is not even included in Win2000/XP/Server - it has to be downloaded with the Windows Resource Kit. In other words, for the OP's platforms xcopy is the standard and robocopy is a nice add-on.I fully agree with you when it comes to the Vista platform: xcopy is a legacy product. For the other platforms, xcopy is widely used and works well in the vast majority of cases. I am also aware of its limitation. "Joe D" <n@n.com> wrote in message news:e6p9CyBMIHA.1168@TK2MSFTNGP02.phx.gbl... just an FYI... here is one of hundreds of articles found on MS and MSDN websites explaining that xcopy is indeed deprecated.... see? you learn something new every dayhttp://blogs.msdn.com/matt_pietrek/archive/2007/01/16/robocopy-built-into-vista.aspx "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eBy7Bo$LIHA.4712@TK2MSFTNGP04.phx.gbl... It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Yep. It refers to Server 2008, which was only just released and which the OP does not refer to.
"Joe D" <n@n.com> wrote in message news:OoJO$ECMIHA.1184@TK2MSFTNGP04.phx.gbl... try this one:http://technet2.microsoft.com/windowsserver2008/en/library/76a310d7-9925-4571-a252-0e28960d5f891033.mspx?mfr=true "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uYe%23a%23BMIHA.3940@TK2MSFTNGP05.phx.gbl... I love to learn new things. At the same time I note that the text you quote refers to Vista. I also note that the word Vista is conspicuous by its absence in the OP's subject, text and list of newsgroups. Furthermore, robocopy is not even included in Win2000/XP/Server - it has to be downloaded with the Windows Resource Kit. In other words, for the OP's platforms xcopy is the standard and robocopy is a nice add-on.I fully agree with you when it comes to the Vista platform: xcopy is a legacy product. For the other platforms, xcopy is widely used and works well in the vast majority of cases. I am also aware of its limitation. "Joe D" <n@n.com> wrote in message news:e6p9CyBMIHA.1168@TK2MSFTNGP02.phx.gbl... just an FYI... here is one of hundreds of articles found on MS and MSDN websites explaining that xcopy is indeed deprecated.... see? you learn something new every dayhttp://blogs.msdn.com/matt_pietrek/archive/2007/01/16/robocopy-built-into-vista.aspx "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eBy7Bo$LIHA.4712@TK2MSFTNGP04.phx.gbl... It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan so lets recap... it IS "deprecated", but only for vista and future windows versions? isnt that the very definition of the word??? im only commenting because as youll recall, i said it was deprecated in general, and you disagreed. but now you agree...
"Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJPYnJCMIHA.3516@TK2MSFTNGP02.phx.gbl... Yep. It refers to Server 2008, which was only just released and which the OP does not refer to. "Joe D" <n@n.com> wrote in message news:OoJO$ECMIHA.1184@TK2MSFTNGP04.phx.gbl... try this one:http://technet2.microsoft.com/windowsserver2008/en/library/76a310d7-9925-4571-a252-0e28960d5f891033.mspx?mfr=true "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uYe%23a%23BMIHA.3940@TK2MSFTNGP05.phx.gbl... I love to learn new things. At the same time I note that the text you quote refers to Vista. I also note that the word Vista is conspicuous by its absence in the OP's subject, text and list of newsgroups. Furthermore, robocopy is not even included in Win2000/XP/Server - it has to be downloaded with the Windows Resource Kit. In other words, for the OP's platforms xcopy is the standard and robocopy is a nice add-on.I fully agree with you when it comes to the Vista platform: xcopy is a legacy product. For the other platforms, xcopy is widely used and works well in the vast majority of cases. I am also aware of its limitation. "Joe D" <n@n.com> wrote in message news:e6p9CyBMIHA.1168@TK2MSFTNGP02.phx.gbl... just an FYI... here is one of hundreds of articles found on MS and MSDN websites explaining that xcopy is indeed deprecated.... see? you learn something new every dayhttp://blogs.msdn.com/matt_pietrek/archive/2007/01/16/robocopy-built-into-vista.aspx "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eBy7Bo$LIHA.4712@TK2MSFTNGP04.phx.gbl... It may be your personal preference to use robocopy instead of xcopy but xcopy has certainly not been "deprecated" as you put it. Why should it? It is fully functional and it is fully supported. Administrators often use robocopy because it has a number of extra features, but that's about all.Ntbackup can, of course, be used for backup purposes. Whether it is the best choice depends on the actual situation. In many cases xcopy or robocopy are preferable, in particular when backing up to a disk: Both make file recovery very, very easy. With ntbackup you sometimes face version and cataloguing issues that can trip up the inexperienced. "Joe D" <n@n.com> wrote in message news:e%23NRVf8LIHA.5400@TK2MSFTNGP04.phx.gbl... by replaced i meant xcopy is hardly used anymore, and has been deprecated.... use robocopy instead.and the op said "I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis".... ntbackup is perfectly capable of doing exactly this "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQRk2T2LIHA.4476@TK2MSFTNGP06.phx.gbl... This is incorrect. Xcopy is alive and well. Robocopy is an alternative product with a different command syntax and ntbackup has completely different functionality. "Joe D" <n@n.com> wrote in message news:OrAVEO2LIHA.4752@TK2MSFTNGP05.phx.gbl... xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!? "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Correct, I disputed your general statement in my first reply. I subsequently learnt through your replies that xcopy is deprecated in Vista and in Server 2008. I am not aware of any similar comments for earlier Windows and Server products. I would therefore recommend the use of robocopy on Vista and Server 2008, and robocopy or xcopy on earlier OSs.
"Joe D" <n@n.com> wrote in message news:%23$YGmMCMIHA.4740@TK2MSFTNGP02.phx.gbl... so lets recap... it IS "deprecated", but only for vista and future windows versions? isnt that the very definition of the word??? im only commenting because as youll recall, i said it was deprecated in general, and you disagreed. but now you agree...Sorry for the confusion... let me xplain once more...
The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Fine. I'll come back in an hours time.
"Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Now why is that I feel like a dentist trying to extract a wisdom tooth?
Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Thanks Pegasus...
Will try the script and come back soon.... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Dear all,
Am sorry that the thread went to some heated exchanges... Guys.. pls don take anything personal.. just exchange knowledge.. no exchange of feelings..... And if I only felt it.. am sorry about that too... Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Dear Pegasus,
Thanks for the reply.. I am having a questio... at the line of Ping I get the following error: " 'ping' is not recognized as an internal or external command, operable program or batch file." Could you please help.. I tried using it in a batch file and also as a vbs file. Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan - Have a look where ping.exe resides. It should be in the System32 directory.
- Check your %path%. It must include the c:\Windows\System32 directory. - Execute ping.exe directly from the Command Prompt. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:u93LgLPMIHA.4456@TK2MSFTNGP03.phx.gbl... Dear Pegasus,Thanks for the reply.. I am having a questio... at the line of Ping I get the following error: " 'ping' is not recognized as an internal or external command, operable program or batch file." Could you please help.. I tried using it in a batch file and also as a vbs file. Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Hi,
Ping runs fine in my machine.. but it cannot be invoked frm the vbscript file.. at line number 3 of the script you had given it throws the following error: " 'ping' is not recognized as an internal or external command, operable program or batch file." can u please tell me where I am going wrong? Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%235jb7%23PMIHA.4688@TK2MSFTNGP06.phx.gbl... - Have a look where ping.exe resides. It should be in the System32 directory.- Check your %path%. It must include the c:\Windows\System32 directory. - Execute ping.exe directly from the Command Prompt. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:u93LgLPMIHA.4456@TK2MSFTNGP03.phx.gbl... Dear Pegasus,Thanks for the reply.. I am having a questio... at the line of Ping I get the following error: " 'ping' is not recognized as an internal or external command, operable program or batch file." Could you please help.. I tried using it in a batch file and also as a vbs file. Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan I think we are running round in circlues. You keep mixing batch
files with script files. I gave you a batch file, not a script file (even though it had a section that will generate a script file). It's now back to where we started: If you have a problem then you MUST post the file you currently use, and you MUST tell us if you saved it as a batch file (.bat) or as a script file (.vbs). "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23XjIG7bMIHA.5988@TK2MSFTNGP02.phx.gbl... Ping runs fine in my machine.. but it cannot be invoked frm the vbscript file.. at line number 3 of the script you had given it throws the following error:Hi, " 'ping' is not recognized as an internal or external command, operable program or batch file." can u please tell me where I am going wrong? Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%235jb7%23PMIHA.4688@TK2MSFTNGP06.phx.gbl... - Have a look where ping.exe resides. It should be in the System32 directory.- Check your %path%. It must include the c:\Windows\System32 directory. - Execute ping.exe directly from the Command Prompt. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:u93LgLPMIHA.4456@TK2MSFTNGP03.phx.gbl... Dear Pegasus,Thanks for the reply.. I am having a questio... at the line of Ping I get the following error: " 'ping' is not recognized as an internal or external command, operable program or batch file." Could you please help.. I tried using it in a batch file and also as a vbs file. Thanks, Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%230ig292LIHA.5468@TK2MSFTNGP05.phx.gbl... Now why is that I feel like a dentist trying to extract a wisdom tooth?Here is a nice and simple solution: @echo off :again ping 192.168.0.1 | find /i "bytes=" && goto Label1echo. set /r reply=The network is not available. Try again? (Y/N) if /i "%reply%"=="Y" (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some Folder192.168.0.1 is the IP address of your server. Now if you prefer a dialog box instead of a Command Prompt to warn the user then you can do it by invoking a small .vbs script: @echo off echo wscript.quit(MsgBox("The network is not available. Try again?", 1, "Network Problem")) > c:\box.vbs :again ping 192.168.0.1 | find /i "bytes=" && goto Label1cscript.exe //nologo c:\box.vbs if %ErrorLevel%==1 (goto again) else (goto :eof) :Label1 xcopy /s /d /y /c "D:\My Files" \\My Server\Some Share\Some FolderI haven not had the time to fully test this script. If you want the whole lot in a .vbs script file then you need a lot more than just six lines of code. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:O51DJL2LIHA.4684@TK2MSFTNGP06.phx.gbl... Sorry for the confusion... let me xplain once more...The script will be scheduled to run on a weekly basis at 8.00 AM on all the workstations. The msg is supposed to pop up, whenevr the network is not available. The user has to respond to the msgbox, to either Abort the operation, retry the operation or cancel it. Here the user will respond to it... The thought process is that.. if the user has not connected the network cable, and the msg pops up, then he can check his network conection and then retry it... Thanks .... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it helps to provide plenty ofbackground information. It is now clear why you might get this dialog box. Now please try to answer my remaining questions - this is ESSENTIAL! - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain...In case the network conectivity is not available, and the scheduled backup fires up.... then it should give a msg in a msgbox telling that "Network connectivity unavailable, Try again?" with the buttons Abort, retry and cancel. Hope i have made it clear.. My intention in doing this is to make backup of the pst files of MS outlook of all workstations (in our case all are laptops).... Thanks once again... Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:uJjN%23J0LIHA.5224@TK2MSFTNGP02.phx.gbl... Your request is unclear. - What generates the "Abort, retry, Cancel" dialog box? - Why? - Do you expect the script to respond to it automatically? - How? "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... thanks very much pegasus.. I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... A batch file would be considerably simpler:@echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all,I wanted the vbscript for script for scheduled backing up local content files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Stanley,
Is the script supposed to start automatically in the background? Or will ir be manually initiated? If it fires automatically, who will be around (and logged on) to respond to any dialog boxes? What about using "ntbackup" to create compressed BKF files? How many copies to reside on the file server? Must the script keep at least one good copy, i.e. only remove/delete the previous backup as long as the current backup actually works? How much data are we talking about from the client? How many different clients will run this backup? I have a DOS script that could run as a scheduled task, and thus you could configure for the scheduled task to run as a particular user name automatically, but it will stop working as soon as the password for the account is changed. Let me know if you want a copy, it's a DOS script of medium complexity. Regards, Dave. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message thanks very much pegasus..news:%23GsGbE0LIHA.2432@TK2MSFTNGP04.phx.gbl... I wanted the vbscript for the "Abort, retry, Cancel" command box and to check for the network connectivity before the xcopy is fired... Could anyone please guide me to a good scripting resource. I hav experience working in vb. Thanks Stan "Pegasus (MVP)" <I.***@fly.com> wrote in message A batch file would be considerably simpler:news:%236SY2YzLIHA.4228@TK2MSFTNGP02.phx.gbl... @echo off xcopy /s /d /y /c "d:\My Files" \\My Server\Some Share\Some Folder Make sure to schedule the command under an account that has sufficient privileges to access the the source & target areas. "Stanley Samuel" <webdev_***@yahoo.com> wrote in message I wanted the vbscript for script for scheduled backing up local content news:OwKD6WyLIHA.4752@TK2MSFTNGP05.phx.gbl... Dear all, files to the network file storage on a weekly basis. Could anyone please help.... Thanks.. Stan Show quote
"D.R." <a@b.c.d> wrote in message news:uWIsVM5LIHA.5244@TK2MSFTNGP03.phx.gbl... > Stanley, > > Is the script supposed to start automatically in the background? > Or will ir be manually initiated? > If it fires automatically, who will be around (and logged on) to respond > to any dialog boxes? > What about using "ntbackup" to create compressed BKF files? | |||||||||||||||||||||||