Re: XP Hangs Using Shutdown Scripts



How would I change it to a .cmd file? Would it still be executed as a
batch file!?

--- Charles!

On Fri, 27 Jan 2006 23:13:42 +0000, Samuria <samuria@xxxxxxxx> wrote:

>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: %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: %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)
  • Re: Looking for a user shutdown or startup script
    ... >> Where can I find something...you know, that executes a script for shutdown ... >> or startup? ... What I want to do is append it with a simple rm command ...
    (alt.os.linux.suse)
  • RE: Finetuning: Remote Shutdown with WMI, some errors occur.
    ... Also we would like that a workstation that's locked is also shutdown by this ... script to shutdown all approx. ... Dim strBase, strFilter, strAttributes, strQuery, objRecordSet ... Const OpenAsDefault = -2 ...
    (microsoft.public.windows.server.scripting)