Andrewchris wrote:
> "Sudheer GN [MSFT]" wrote:
>
>> Open a command prompt and run the following commands
>> net stop wuauserv
>> rd /s /q %windir%\SoftwareDistribution
>> net start wuauserv
>>
>
> I can't get the second line to work! When I run the command " rd /s /q
> %windir%\SoftwareDistribution", windows gives me the error: "windos cannot
> find 'rd'..."
>
> Am I missing a directory or parameter here?
Hi
I would guess you try to run the commands from Start/Run instead
from a command prompt, and that will not work for "rd" because it
is an internal command for cmd.exe.
If you want to use rd from Start/Run, you would need to do like this:
cmd.exe /c rd /s /q %windir%\SoftwareDistribution
But it would be easier to just open a command prompt as Sudheer
suggested and run all the commands from there. You can open a
command prompt e.g. this way:
Start/Run --> cmd.exe
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx