Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - delete temp dlls via powershell

Reply
 
Old 01-04-2007   #1 (permalink)
John


 
 

delete temp dlls via powershell

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



My System SpecsSystem Spec
Old 01-04-2007   #2 (permalink)
Keith Hill [MVP]


 
 

Re: delete temp dlls via powershell

"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


My System SpecsSystem Spec
Old 01-04-2007   #3 (permalink)
Jeffrey Snover [MSFT]


 
 

Re: delete temp dlls via powershell

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.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
CAN I delete the Temp folder General Discussion
can I delete the temp folder. General Discussion
How to access the %temp% directory using PowerShell PowerShell
delete doc temp files in vista Vista performance & maintenance
Cmdlet DLLs and PowerShell API without DLL registration PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46