Why does this fail on DLL's??
remove-item -path "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\*" -recurse -force
I'm logged on as an administrator, and a similar cmd.exe command works fine.
Thanks,
John
Why does this fail on DLL's??
remove-item -path "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
ASP.NET Files\*" -recurse -force
I'm logged on as an administrator, and a similar cmd.exe command works fine.
Thanks,
John
"John" <john@nowhere.com> wrote in message
news:O5mKILEMHHA.4376@TK2MSFTNGP04.phx.gbl...
> Why does this fail on DLL's??
>
> remove-item -path "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
> ASP.NET Files\*" -recurse -force
>
> I'm logged on as an administrator, and a similar cmd.exe command works
> fine.
What sort of error do you get? Is it possible that one of the DLLs was still
in use when you tried using PoSH and not in use when you tried it from
cmd.exe.
--
Keith
Whenever asking about why something fails, please follow the advice in the
blog entry below to minimize the time to resolve:
http://blogs.msdn.com/powershell/arc...lve-error.aspx
--
Jeffrey Snover [MSFT]
Windows PowerShell Architect
Microsoft Corporation
This posting is provided "AS IS" with no warranties, no confers rights.
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can I delete the temp folder. | El Mejor | General Discussion | 20 | 15 Aug 2010 |
| CAN I delete the Temp folder | El Mejor | General Discussion | 4 | 15 Aug 2009 |
| How to access the %temp% directory using PowerShell | Flea# | PowerShell | 10 | 24 Jan 2008 |
| delete doc temp files in vista | drew | Vista performance & maintenance | 5 | 08 Jun 2007 |
| Cmdlet DLLs and PowerShell API without DLL registration | Jason Mobarak | PowerShell | 7 | 22 Dec 2006 |