Re: Copy Script




"ickleric" <home@xxxxxxxxxxxx> wrote in message
news:1182955670.354541.47650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ahh briliant. I knew it would be something simple. Also had to move
the create computername folder out of the For Each loop, as i only
needed to create it once.

On another note, if the script fails because a file is in use or a
filename is too long, is there anyway to log exactly what caused the
script to fail on i.e. filename/path?


The exact reason I never use CopyFolder anymore in my data
backup and data migration scripts. I know of no way to figure out
where it failed, let alone continue the copy after the error. The same
goes for the CopyHere method. So, I use good old Xcopy to get
the job done. It will continue on error, and you can get access to
the error's during copy via StdOut if you use the .Exec method to
run your Xcopy.


TDM


.



Relevant Pages

  • Re: EnumLocalGroup - fails when "NT AUTORITY/SYSTEM" is member of group
    ... I am using modified version of Richard Muellars script to enumerate ... What I am finding is the the script fails when it hits a server that ... On Error GoTo 0 ... since there cannot be members. ...
    (microsoft.public.windows.server.scripting)
  • Re: Reading Registry
    ... You are right that if "winmgmts" were case sensitive, ... The program seems to work for me if I substitute strComputer for compname, ... If this is run as a logon script, you can retrieve the computer name from ... the computers where the script fails, ...
    (microsoft.public.scripting.vbscript)
  • Re: Merge replication - Check network document
    ... The keep alive script Paul mentions should be run on the Subscriber against ... the Publisher as an osql script. ... When the script fails it will give you the ...
    (microsoft.public.sqlserver.replication)
  • How to unmap "ghost" network drive
    ... There is a script calling by System Agent that maps external network share to drive letter. ... When this script fails without unmapping network drive, ... My Windows is 2000 Server SP4 with Terminal Services. ...
    (microsoft.public.windows.server.networking)
  • Re: Disk back-up using task scheduler?
    ... On the MS website the syntax is... ... Below you have xcopy followed immediately by the switches. ... As I don't fully understand the full script I am not sure if this is correct ... BTW I am using an existing xcopy in the following format.... ...
    (microsoft.public.windowsxp.general)