Re: XP Hangs Using Shutdown Scripts



On Fri, 27 Jan 2006 11:58:58 -0800, Charles Waters
<charlestwaters@xxxxxxxxxxxxx> wrote:

I can see you would have problems on shutdown as windows may well
shutdown before the script finishes if there are a lot of files. It
may not complete on the temp file dir if they are in use.

It should run ok if you create a cmd file and add it to the startup
group. you may need to change the attrib on the files if some are
readonly it wont delete them and the script may fail do a attrib -r
*.* /s /d before each del command

>Here's my dilema...
>
>Win XP SP2, and trying to run the following file during shutdown...
>
>RD C:\Directory1 /S /Q
>RD C:\Directory2 /S /Q
>RD C:\Directory3 /S /Q
>RD C:\Windows\Temp /S /Q
>
>Problem is, when I run this file, the system hangs at "Running
>Shutdown Scripts". I have tried with both an EXIT, and no EXIT at the
>end of the file, and same response.
>
>Also, I have put this file in as a Startup Script, and I can tell it
>doesn't run at startup, because all 4 directories are either still
>there, or the ones that are still there, have old data in them.
>
>Any help from anyone?
>
>--- Charles!
.



Relevant Pages

  • Re: Installation in Gpedit
    ... du suchst den Punkt Computer startup and shutdown Script. ...
    (microsoft.public.de.german.scripting.wsh)
  • Re: XP Hangs Using Shutdown Scripts
    ... How would I change it to a .cmd file? ... >shutdown before the script finishes if there are a lot of files. ... >>Also, I have put this file in as a Startup Script, and I can tell it ...
    (alt.os.windows-xp)
  • Re: %windir%...scriptsshutdown Q
    ... MS-MVP Windows Shell/User ... Overview of Logon, Logoff, Startup, and Shutdown Scripts in Windows ... How To Assign a Logon Script to a Profile for a Local User in Windows ... When you use Group Policy to add a startup script... ...
    (microsoft.public.windowsxp.general)
  • Re: How to debug system reboot/shutdown procedure?
    ... My script is working perfectly if it is called from command line like ... No errors, pppoe daemon shuts down, exit status is 0 (even if I remove explicit ... and then shutdown continues ok. ... However filesystems in use cannot be ...
    (comp.unix.solaris)
  • Re: %windir%...scriptsshutdown Q
    ... Overview of Logon, Logoff, Startup, and Shutdown Scripts in Windows ... How To Assign a Logon Script to a Profile for a Local User in Windows ... When you use Group Policy to add a startup script... ...
    (microsoft.public.windowsxp.general)