腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(3368)
视频
沙龙
1
回答
脚本中的更多逻辑
powershell
、
citrix
Stop-Process -processname Receiver
Remove-Item
$env:LOCALAPPDATA\temp\*.ica
Remove-Item
$env:LOCALAPPDATA\temp\2 -Recurse
Remove
浏览 9
提问于2016-11-12
得票数 0
6
回答
PowerShell:如何删除名称以点(例如".svn")开头的文件夹?
powershell
我试过了:但这是我遇到的错误+
Remove-Item
<<<< "C:\foo\.svn" + CategoryInfo : ObjectNotFound: (C:\foo\.svn:String) [
Remov
浏览 14
提问于2011-02-25
得票数 3
回答已采纳
1
回答
Get-ChildItem,列出符合某些参数的文件,然后删除-Item
powershell
、
export-to-csv
、
get-childitem
、
select-object
但是我不知道如何在不丢失导出文件的情况下添加
Remove-Item
指令来实际删除文件。顺便说一句,写主机日志不会满足我的要求,因为我需要记录文件的大小,最后一次写入时间等。当然,我可以重新运行Get-ChildItem,而不是通过管道连接到Select-Object,通过管道连接到
Remove-Item
,但这将意味着大量的时间损失。
浏览 14
提问于2018-10-24
得票数 1
1
回答
如何让powershell在出错时不那么冗长?
powershell
\bin + CategoryInfo : WriteError: (Implementation:DirectoryInfo) [
Remove-Item
], IOException\bin + CategoryInfo : PermissionDenied: (Shunra.Common.Contract.X
浏览 4
提问于2011-10-15
得票数 6
回答已采纳
1
回答
在dockerfile中,如何从docker映像中删除目录及其内容?(窗户)
windows
、
powershell
、
docker
、
dockerfile
、
docker-build
运行构建后,我希望删除键文件夹(C:\app\key),为此我使用:注:我也尝试过以下每一种选择:RUN RD /S /Q C:\app\keysStep 10/14 : RUN powershell.exe
Remove-Item
-Path C:\app\keys -Force ---&
浏览 2
提问于2020-06-02
得票数 2
回答已采纳
1
回答
从csv删除路径的项目变量
powershell
、
variables
、
path
、
import-csv
这是我尝试使用的代码:错误是这样的:
Remove-Item
:找不到驱动器。第4行: Microsoft.PowerShell.Commands.RemoveItemCommand :5+
Remove-Item
-Path $folder -Recurse -Force +~: DriveNotFound,char <em
浏览 9
提问于2020-04-19
得票数 0
1
回答
Powershell:无法隐藏“拒绝访问”“删除-项”错误
powershell
、
exception
、
error-handling
我想保持
Remove-Item
指令安静,例外与否。我在脚本中运行命令以删除证书:如果我以当地行政官员的身份运行剧本,好吧.它保持安静,文件被删除。我试过以下几种方法:# or... try{
Remove-Item
$store\$thumbprint} catch
Remove-Item
$store\$thumbprint -ErrorAction Sil
浏览 7
提问于2020-04-17
得票数 0
回答已采纳
1
回答
从powershell变量中删除多个项
powershell
以下作品但这不是如何让
Remove-Item
接受要删除的项的变量列表?
浏览 2
提问于2019-09-28
得票数 1
回答已采纳
2
回答
xamarin形成android图标,用于轻/暗。
c#
、
xaml
、
xamarin
、
xamarin.forms
、
xamarin.android
如何编写可绘制的xml来支持不同的大小和主题(黑暗和光明)?我当前的xml可绘图(例如,从图标包向左箭头);<vector xmlns:android="http://schemas.android.com/apk/res/android" android:width="24dp" andro
浏览 6
提问于2020-12-05
得票数 0
回答已采纳
2
回答
禁止显示错误消息
powershell
、
powershell-2.0
Get-ChildItem $path | Where-Object {$_.Extension -eq ".csv"} | Foreach-Object {$_.fullName}
Remove-Item
浏览 1
提问于2012-10-30
得票数 0
回答已采纳
1
回答
删除用户文件
windows
、
powershell
$folder2 -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item
$folder4 -Recurse -Force -ErrorAction SilentlyContinue <em
浏览 0
提问于2020-02-27
得票数 0
1
回答
Powershell:"
remove-item
$object“与"$object @
remove-item
”
powershell
\junk\delete-mePS C:\Users\robert.lee>
remove-item
*//*这确实删除了C:\temp\垃圾\删除-我。*/ 为什么
remove-item
$d不知道在哪里找到文件(C:\temp\junk),而$d |
remove-item</em
浏览 6
提问于2022-05-04
得票数 2
回答已采纳
1
回答
Remove-找不到项目抛出文件
powershell
、
powershell-2.0
、
powershell-3.0
ForEach-Object {
Remove-Item
Remove-Item
抛出文件未找到异常
浏览 13
提问于2020-10-28
得票数 1
回答已采纳
2
回答
我找不到为什么我的Powershell脚本会出现权限错误
powershell
/捕捉方法,该脚本工作great...with没有权限问题,它删除配置文件像charm...and一样,与我自制的script...So相同的凭据我真的觉得这不是一个真正的凭据问题,更多的是与im使用
remove-item
\\$server\c$\users\$user -recurse -force } +
Remove-
浏览 1
提问于2014-05-07
得票数 0
2
回答
如何在C:\驱动器上完全卸载OneDrive并删除与OneDrive相关的文件夹?
powershell
、
onedrive
、
uninstallation
I run into trouble #
Remov
浏览 16
提问于2022-04-21
得票数 0
2
回答
删除程序文件文件夹中的文件和文件夹
powershell
我一直在用还有一个,以防它是64位的机器任何帮助都会很好!
浏览 3
提问于2015-07-03
得票数 0
回答已采纳
1
回答
移除-带有-Recurse和-Force的项目不会移除所有文件和文件夹
powershell
命令很简单:
Remove-Item
$deletePath -Recurse -Force 在运行之前,c:\Compile中大约有150个文件夹
Remove-Item
: Cannot remove item C:\Compile\IFIFWCHG\obj: The directory is not empty.
Remove-Item
: Cannot remove item C:\Compile\IFIFWCHG: The directory is not
浏览 1
提问于2016-05-28
得票数 1
3
回答
如何在删除项提示确认时自动选择“否”?
powershell
当使用PowerShell的
Remove-Item
删除不为空的目录时,它将提示确认:如果我在非交互模式下运行powershell,则会得到一个错误:+
Remove-Item
.\Test + ~~~
浏览 8
提问于2013-11-27
得票数 7
回答已采纳
5
回答
无法删除项目。目录不为空
powershell
、
windows-server-2012-r2
Remove-Item
-Force -Recurse -Path $directoryPath 我收到错误Cannot remove item.
浏览 493
提问于2016-07-01
得票数 54
回答已采纳
1
回答
在Windows 10上启动停靠服务时出错
docker
在Windows 10上,我在Hyper-V中遇到了一些问题。现在似乎一切都已经解决了,但是当我尝试启动码头服务时,会出现以下错误: 在Docker.Service.DockerService.DoRun() 在System.ServiceProcess.Service
浏览 3
提问于2017-01-11
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
如何完全禁止win10自动更新
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券