秒客网

秒客网
  • 首页
  • 网络编程
    • Java
    • C/C++
    • 编程技术
    • Android
    • C#
    • VB
    • R语言
    • JavaScript
    • Swift
    • IOS
    • PHP
    • ASP.NET
    • ASP
    • 正则表达式
    • 易语言
    • vb.net
    • C语言
    • Python
    • Golang
    • bat
    • VBS
    • perl
    • Lua
    • Dos
    • Ruby
    • VBA
    • PowerShell
    • Erlang
    • autoit
  • 网络运营
    • 建站经验
    • 网络安全
    • 网站优化
    • 网站运营
    • 站长资源
  • 数据库
    • Redis
    • Oracle
    • Mysql
    • Sql Server
    • Access
    • mariadb
    • DB2
    • PostgreSQL
    • Sqlite
    • MongoDB
    • 数据库技术
    • Mssql
  • 服务器系统
    • Linux
    • Ubuntu
    • Centos
    • Windows10
    • Windows7
    • 系统进程
    • Bios
    • Fedora
    • Windows11
    • Solaris
    • 注册表
    • windows server
  • 服务器技术
    • 云服务器
    • 虚拟主机
    • DNS服务器
    • Nginx
    • FTP服务器
    • 服务器其它
    • 服务器安全
    • WEB服务器
    • Tomcat
    • 邮件服务器
    • IIS
    • 虚拟服务器
  • 建站程序
    • Wordpress
    • 极致CMS
    • ZBLOG
    • PHPCMS
    • DEDECMS
    • 帝国CMS
    • Discuz
    • 苹果CMS
    • ECSHOP
    • CMS系统
  • 电脑知识
    • 网络技术
    • 组装电脑
    • 软件教程
    • 电脑硬件
  • 数码知识
    • 智能家居
    • 智能电视
    • 机顶盒
    • 智能音箱
    • 手表手环
    • VR/AR
    • VR之家
  • 游戏
    • 手机游戏
    • 单机游戏
    • 网络游戏
  • 综合资讯
    • 百科知识
当前位置: 首页 >Powershell read XML format config file

Powershell read XML format config file

时间:2023-03-09 20:13:09
Powershell read XML format config file
upload.xml
<?xml version="1.0" ?>
<ftpConfig>
<Protocol>ftp</Protocol>
<HostName>127.0.0.1</HostName>
<UserName>admin</UserName>
<Password>Password</Password>
<RemotePath>/e/test/path/data/</RemotePath>
<LocalPath>e:\test\path\data\</LocalPath>
</ftpConfig>

$xmlData=[xml](Get-Content "E:\test\path\scripts\upload.xml")
$localPath = $xmlData.ftpConfig.LocalPath
$remotePath = $xmlData.ftpConfig.RemotePath

相关文章

  • IDEA创建XML Configuration File文件时,选项里没有Spring Config
  • Docker: Jenkins降级异常(java.io.IOException: Unable to read /var/jenkins_home/config.xml)
  • IDEA新建XML Configuration File中没有Spring Config选项如何解决?
  • How to: Read Object Data from an XML File
  • Caused by: Unable to load configuration. - action - file:/C:/apache-tomcat-7.0.70/webapps/Structs/WEB-INF/classes/struts.xml:7:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfigurati
  • could not read symbols: File format not recognized
  • Powershell:如何在XML数据中使用Format-Table
  • PowerShell - Read an Excel file using COM Interface
  • Error:Failed to load project configuration:xxxxxxxxxxxxxxxxxxxx cannot read file .idea/misc.xml
  • GCC 源码编译 mpc mprf gmp 不用make(否则会有lib/libgmp.so: could not read symbols: File in wrong format等错误)
上一篇:在XML drawable中引用自定义颜色
下一篇:xml文件中引用网址报红色如何解决

热门标签

xmlpowershellpowershell-v2.0

推荐文章

  • 24.C#LINQ TO XML(十二章12.3)
  • [HNOI2003]消防局的设立 树形dp // 贪心
  • centos7把编译安装的服务通过systemctl管理
  • CUBRID学习笔记 27 数据类型4
  • 《nginx 二》深入理解nginx的各项配置
  • all index range ref eq_ref const system 索引type说明
  • 解题(StringJiaMi--字符串加密)
  • 【转】C#中continue、break和return用法
  • python与C++交互
  • Android SQLite数据储存方式

相关下载

  • generate xml format file下载
  • read_long_item_in_config_file.rar下载
  • how-to-read-a-local-xml-file-with-flex.pdf下载
  • C - xml config file parser-开源下载
  • WMF format read write下载
  • 最新编程技术文章
  • 网站地图

Copyright © 2021-2022 www.miaokee.com 秒客网 备案号:粤ICP备2021167564号

免责声明:本站文章多为用户分享,部分搜集自互联网,如有侵权请联系站长,我们将在72小时内删除。

