|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 .... Thanks.. Stan |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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_mct@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 .... Thanks.. Stan |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
xcopy has been replaced by robocopy. although why dont you use ntbackup and simply schedule it?!?
"Pegasus (MVP)" <I.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
Fine. I'll come back in an hours time.
"Stanley Samuel" <webdev_mct@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
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 Label1 echo. 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 Folder 192.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 Label1 cscript.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 Folder I 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_mct@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
"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? > 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. > I thought that DOS was an operating system that was retired some fifteen years ago? :-) |
|
|
|
#14 |
|
Messages: n/a
Hébergeur: |
Okay, the backup script is written in MS-Dos - I haven't converted it toVBScript yet. I prefer OpenVMS DCL as a scripting language, but these days most things I do are in VBScript. "Pegasus (MVP)" <I.can@fly.com> wrote in message news:eVVFgo5LIHA.3516@TK2MSFTNGP02.phx.gbl... > > "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? >> 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. >> > > I thought that DOS was an operating system that was retired some > fifteen years ago? :-) > |
|
|
|
#15 |
|
Messages: n/a
Hébergeur: |
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.can@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#16 |
|
Messages: n/a
Hébergeur: |
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.can@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#17 |
|
Messages: n/a
Hébergeur: |
Thanks for the detailed analysis of the scenario.. it was really ful....
I would be grateful if u cud send me that DOS script... I wud hav questions in customising it... hmmmm... hope to hear soon..... Thanks once again... Stan "D.R." <a@b.c.d> wrote in message news:eLccj55LIHA.4684@TK2MSFTNGP06.phx.gbl... > Okay, the backup script is written in MS-Dos - I haven't converted it to > VBScript yet. I prefer OpenVMS DCL as a scripting language, but these days > most things I do are in VBScript. > > > > "Pegasus (MVP)" <I.can@fly.com> wrote in message > news:eVVFgo5LIHA.3516@TK2MSFTNGP02.phx.gbl... >> >> "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? >>> 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. >>> >> >> I thought that DOS was an operating system that was retired some >> fifteen years ago? :-) >> > > |
|
|
|
#18 |
|
Messages: n/a
Hébergeur: |
Thanks Pegasus...
Will try the script and come back soon.... Stan "Pegasus (MVP)" <I.can@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 Label1 echo. 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 Folder 192.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 Label1 cscript.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 Folder I 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_mct@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#19 |
|
Messages: n/a
Hébergeur: |
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/a...nto-vista.aspx "Pegasus (MVP)" <I.can@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.can@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@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.can@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_mct@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.can@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_mct@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 .... Thanks.. Stan |
|
|
|
#20 |
|
Messages: n/a
Hébergeur: |
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 day http://blogs.msdn.com/matt_pietrek/a...nto-vista.aspx "Pegasus (MVP)" <I.can@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.can@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.can@fly.com> wrote in message news:eQahME2LIHA.4196@TK2MSFTNGP04.phx.gbl... When you require a script then it s 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_mct@yahoo.com> wrote in message news:Of7t6s1LIHA.4272@TK2MSFTNGP05.phx.gbl... leme explain... In case the network conectivity is not av |