首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏代码编写世界

    CMake构建学习笔记10-OsgQt库的构建

    --config RelWithDebInfo --target install # 自定义安装 # 复制include文件夹 Copy-Item -Path ".. /lib/osgQt5.lib" -Destination "$InstallDir/lib" -Force Copy-Item -Path ". /bin/osg145-osgQt5.dll" -Destination "$InstallDir/bin" -Force Copy-Item -Path ". --config RelWithDebInfo --target install # 自定义安装 # 复制include文件夹 Copy-Item -Path ".. /lib/osgQOpenGL.lib" -Destination "$InstallDir/lib" -Force Copy-Item -Path ".

    48800编辑于 2024-12-14
  • 来自专栏python3

    Powershell_Script<3>

    **复制文件 cp C:\hello.txt C:\test copy-item C:\hello.txt C:\test ls  hello.txt **删除文件 rm hello.txt remove-item **复制多个文件 cp c:\*.txt C:\test copy-item C:\*.txt C:\test ls  *.txt ** 删除多个文件 remove-item *.txt echo "Copy an floder to another ." * 文件夹的复制 cp C:\inetpub C:\test copy-item C:\inetpub C:\test -recurse ls inetpub

    2.5K30发布于 2020-01-14
  • 来自专栏DotNet NB && CloudNative

    .NET 7+ Vue 3 + EF Core 框架简洁功能完整的WMS系统

    编译前端和后端 md C:\ModernWMS\frontend\ md C:\ModernWMS\backend\ cd c:\ModernWMS-master\backend dotnet publish copy-item \backend\ModernWMS\bin\Debug\net7.0\publish\" -destination "C:\ModernWMS\backend\" -recurse copy-Item \wms.db" -Destination "C:\ModernWMS\backend\" cd c:\ModernWMS-master\frontend yarn && yarn build copy-item -1.16.1.zip -OutFile nginx-1.16.1.zip Expand-Archive -Path C:\nginx-1.16.1.zip -DestinationPath C:\ copy-item

    1.8K30编辑于 2023-03-09
  • 来自专栏个人技术随笔

    Zabbix 随笔:主机自动化注册(Windows 篇)

    shell.NameSpace($file) $dest = $shell.NameSpace((Split-Path $file -Parent)) $dest.CopyHere($zip.Items()) Copy-Item C:\zabbix\bin\*.exe C:\zabbix\ Copy-Item C:\zabbix\conf\*.conf C:\zabbix\ Rename-Item C:\zabbix\zabbix_agent2

    1.3K30编辑于 2022-02-16
  • 来自专栏运维开发王义杰

    Windows: 使用PowerShell管理Hyper-V虚拟机

    使用 New-PSSession 和 Copy-Item 复制文件 注意: PowerShell Direct 仅支持 Windows 版本 14280 及更高版本中的持久性会话 在编写用于跨一个或多个远程计算机协调操作的脚本时 在此示例中,我们将使用 New-PSSession和 Copy-Item 在主机和虚拟机之间移动数据。 8.1. 要将 C:\host_path\data.txt 从主机复制到虚拟机内,运行: Copy-Item -ToSession $s -Path C:\host_path\data.txt -Destination 要将 C:\guest_path\data.txt 从虚拟机复制到主机,运行: Copy-Item -FromSession $s -Path C:\guest_path\data.txt -Destination

    2.2K10编辑于 2024-06-14
  • 来自专栏WinodsServer学习笔记

    WindosServer 任务计划程序定时执行 powershell 脚本

    Copy-Item ./aa.txt ./BB.txt那PowerShell脚本文件是无法被执行的。二、如何使用任务计划程序调用Ps脚本?那么这时候我们就需要,借助一个任务计划程序可以执行的脚本了。

    1.7K10编辑于 2024-11-27
  • 来自专栏全栈工程师修炼之路

    PS常用命令之文件目录及内容操作

    "C:\weiyigeek\mar1604.log.txt" -Destination "C:\target" Copy-Item -Path "C:\WeiyiGeek\*" -Destination 例如: Copy-Item -Path "C:\WeiyiGeek" -Destination "C:\target\Logs" -Recurse # 2.复制本地文件目录到远程主机之中 # 例如将本机的 1.txt复制到远程172.16.158.183主机的之中并重命名该文件 $session = New-PSSession -ComputerName 172.16.158.183 Copy-Item -Path C:\1.txt -Destination c:\2.txt # 例如将本机的WeiyiGeek目录复制到远程172.16.158.183主机的c:\remote\WeiyiGeek之中 Copy-Item Copy-Item "C:\MyRemoteData\scripts" -Destination "D:\MyLocalData\scripts" -FromSession $Session -Recurse

    9.6K20编辑于 2022-09-29
  • 来自专栏膨胀的面包

    Win10锁屏壁纸怎么提取保存到本地

    Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*")) { if ((Get-Item $file).length -lt 100kb) { continue } Copy-Item

    2.5K30发布于 2021-06-15
  • 来自专栏FreeBuf

    Meerkat:一款针对Windows终端的信息收集与网络侦查PowerShell工具

    master.zip -OutFile $Modules\master.zip Expand-Archive $Modules\master.zip -DestinationPath $Modules Copy-Item

    64710编辑于 2024-04-15
  • 来自专栏全栈工程师修炼之路

    PS编程补充说明

    { $sub = $pdf.Substring(5,5)+".pdf" Write-Host "$pdf -> $sub" -ForegroundColor Green Copy-Item get-Volume -FileSystemLabel $xx).DriveLetter $srcyx = "${SRCDIR}${xx}" echo $srcyx - "${diskname}:\" Copy-Item get-Volume -FileSystemLabel $xx).DriveLetter $srcyx = "${SRCDIR}${xx}\*" echo "$srcyx - ${diskname}:\" Copy-Item

    2.4K10编辑于 2022-09-29
  • 来自专栏FreeBuf

    API安全Top 10 漏洞:crAPI漏洞靶场与解题思路

    4.Copy 54ndc47 (SMB) 给出的命令: $path = "sandcat.go-windows";$drive = "\\#{remote.host.fqdn}\C$";Copy-Item 最终执行的命令: $path = "sandcat.go-windows";$drive = "\\win2016.worm.lab\C$";Copy-Item -v -Path $path -Destination

    1.2K20编辑于 2023-03-29
  • 来自专栏代码编写世界

    CMake构建学习笔记21-通用的CMake构建脚本

    # 复制符号库 foreach ($file in $PdbFiles) { Write-Output $file if (Test-Path $file) { Copy-Item

    30910编辑于 2025-08-28
  • 来自专栏Windows运维

    如何备份和还原用户账户设置?

    备份用户文件夹: Copy-Item -Path "C:\Users\用户名" -Destination "D:\Backup\用户名" -Recurse将“用户名”替换为实际值,“D:\Backup\

    1K10编辑于 2025-03-22
  • PowerShell到底是个啥?跟CMD比起来强在哪里?看完这篇你就懂了

    Length -Descending Set-Location(别名:cd, sl)用来切换目录,这个跟CMD差不多: Set-Location C:\Windows cd D:\Projects Copy-Item (别名:cp, copy)复制文件或目录: # 复制文件 Copy-Item "source.txt" "destination.txt" # 复制整个目录 Copy-Item "C:\Source" oldfolder 文件操作 # CMD copy source.txt dest.txt move old.txt new.txt del file.txt type file.txt # PowerShell Copy-Item

    5.4K30编辑于 2025-11-20
  • 来自专栏Seebug漏洞平台

    原创Paper | 黑盒 fuzz 工具 Jackalope 的使用

    \test.exe $_.FullName if ($LASTEXITCODE -eq 0) { $result = "GOOD" Copy-Item $_.FullName \good\" } else { $result = "BAD" Copy-Item $_.FullName -Destination ".

    1.3K21编辑于 2023-08-23
  • 来自专栏全栈技术

    深入了解Windows PowerShell 自动化运维:基础知识、应用技巧和案例分享

    文件操作: Windows PowerShell 中的文件操作命令包括“Get-ChildItem”、“Copy-Item”、“Move-Item”、“Remove-Item”等。

    2.6K20编辑于 2023-05-04
  • 来自专栏鸿鹄实验室

    T1028: WinRM for Lateral Movement

    domain>\<user> #生成一个交互式的的powersehll Enter-PSSession <host> -Authentication Kerberos #指定认证方式为 kerberos Copy-Item -Path C:\Temp\PowerView.ps1 -Destination C:\Temp\ -ToSession (Get-PSSession) #上传文件到目标 Copy-Item -Path

    2.4K30发布于 2021-04-15
  • 视频抽帧完全指南:使用PowerShell批量提取与优化图片序列

    -ForegroundColor Cyan New-Item -ItemType Directory -Path $backupFolder -Force | Out-Null Copy-Item -ForegroundColor Cyan New-Item -ItemType Directory -Path $backupFolder -Force | Out-Null Copy-Item

    71610编辑于 2025-09-28
  • 来自专栏全栈工程师修炼之路

    MsSQL编程入门-待补充

    [t_student_info] where xxok = '1' -- powershell & copy-item SELECT REPLACE('copy-Item -Path .' [t_student_info] where xxok = '1' -- 指定ks复制到指定目录 SELECT REPLACE('copy-Item -Path .

    92830编辑于 2022-09-29
  • 来自专栏7DGroup

    持续交付之Jenkins+Ansible+Python搭建自动化部署框架(win版)

    Remove-Item -Path $FilePath -Recurse -Force } - name: 备份 Data/Files 目录 win_shell: Copy-Item Destination {{deploy.res_path}} -Recurse ignore_errors: yes - name: 备份 Data/projects 目录 win_shell: Copy-Item args: executable: cmd.exe ignore_errors: yes - name: 还原 Data/Files 目录 win_shell: Copy-Item deploy.app_path}}\Data" -Recurse ignore_errors: yes - name: 还原 Data/projects 目录 win_shell: Copy-Item

    3.3K10发布于 2019-11-25
领券