Sharing Violation with xcopy -after adsutil.vbs APPUNLOAD & iis st

From: gj (gj_at_discussions.microsoft.com)
Date: 01/19/05


Date: Wed, 19 Jan 2005 08:21:05 -0800

IIS6.0 (noticed a similar post in IIS4.0 with no solution posted - thought
I'd try my luck...)

I'm working on a deployment issue for IIS. We are trying to copy in new
files to the web server and keep getting sharing violation. Here's the odd
thing. if we do:

xcopy filename1.dll destdir
xcopy filename2.dll destdir

we don't get the sharing violation but if we do

xcopy *.dll destdir

we always get the sharing violation. Any suggestions besides creating a row
for each dll being copied? Some builds have 50+ dll's. We can modify the
build script to do this but it'd take some time. Checking for a better
solution...

Actual script follows (this version gets the sharing violation):

CScript c:\inetpub\adminscripts\adsutil.vbs STOP_SERVER w3svc/1/
CScript c:\inetpub\adminscripts\adsutil.vbs APPUNLOAD w3svc/1/ROOT/bin
iisreset /stop
xcopy E:\upload\latest\bin\*.dll e:\inetpub\wwwroot\fin\bin2 /E /R /Y
rem xcopy E:\upload\latest\bin\VolumeRpt.dll e:\inetpub\wwwroot\fin\bin2
/E /R /Y
xcopy E:\upload\latest\bin\MTS e:\inetpub\wwwroot\fin\bin2\ /E /R /Y
iisreset /start
CScript c:\inetpub\adminscripts\adsutil.vbs START_SERVER w3svc/1/

--------------------------
output from the script
--------------------------

E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs STOP_SERVER
w3svc/1/
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Server w3svc/1 Successfully STOPPED

E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs APPUNLOAD
w3svc/1/ROOT/bin
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Application Unloaded.

E:\upload\LATEST>iisreset /stop

Attempting stop...

Internet services successfully stopped

E:\upload\LATEST>xcopy E:\upload\latest\bin\*.dll
e:\inetpub\wwwroot\fin\bin2 /E /R /Y
E:\upload\latest\bin\EmployeeCF.dll
E:\upload\latest\bin\VolumeRpt.dll
E:\upload\latest\bin\MTS\FINCtrlFiles.dll

E:\upload\LATEST>rem xcopy E:\upload\latest\bin\VolumeRpt.dll
e:\inetpub\wwwroot\fin\bin2 /E /R /Y

E:\upload\LATEST>xcopy E:\upload\latest\bin\MTS e:\inetpub\wwwroot\fin\bin2\
 /E /R /Y
E:\upload\latest\bin\MTS\FINCtrlFiles.dll
1 File(s) copied

E:\upload\LATEST>iisreset /start

Attempting start...

Internet services successfully started

E:\upload\LATEST>CScript c:\inetpub\adminscripts\adsutil.vbs START_SERVER
w3svc/1/
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

Server w3svc/1 Successfully STARTED



Relevant Pages

  • Re: cscript sometimes fails to run JScript
    ... I have written a JScript that I execute under cscript from the Windows ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ... CScript Error: Initialization of the Windows Script Host failed. ...
    (microsoft.public.scripting.wsh)
  • Re: adding disclaimer with visual basic SMTP transport event sink
    ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ... Binding Display Name Specified: SMTPScriptingHost ...
    (microsoft.public.exchange.admin)
  • Re: how to enble icf remotely
    ... That is only half the problem, you need to determine the interface you ... turn on and off ICF for any or all interfaces. ... Microsoft Windows Script Host Version 5.6 ... Copyright Microsoft Corporation 1996-2001. ...
    (NT-Bugtraq)
  • Re: Aaagh! cScript no longer Returning! ??
    ... the first time I tried it I miss-spelled the ... the correct .vbs file, and it never returned; ... Microsoft Windows Script Host Version 5.1 for Windows ... Copyright Microsoft Corporation 1996-1999. ...
    (microsoft.public.scripting.vbscript)
  • Re: Prndrvr.vbs
    ... > Microsoft Windows Script Host Version 5.6 ... > Copyright Microsoft Corporation 1996-2001. ... > Debug: In function ParseCommandLine ... adding the printer driver is either missing or incorrect. ...
    (microsoft.public.scripting.vbscript)