请帮忙:如何在Excel VBA代码编辑器中打开行号?我正在使用Excel 2013版本.
谢谢.
我试图使用PowerShell 3.0从许多文件名中删除空格.这是我正在使用的代码:
$Files = Get-ChildItem -Path "C:\PowershellTests\With_Space"
Copy-Item $Files.FullName -Destination C:\PowershellTests\Without_Space
Set-Location -Path C:\PowershellTests\Without_Space
Get-ChildItem *.txt | Rename-Item -NewName { $_.Name -replace ' ','' }
Run Code Online (Sandbox Code Playgroud)
例如:With_Space目录包含以下文件:
Cable Report 3413109.pdf Control List 3.txt Test Result Phase 2.doc
Without_Space目录需要以上文件名:
CableReport3413109.pdf ControlList3.txt TestResultPhase 2.doc
目前,该脚本没有显示错误,但它只将源文件复制到目标文件夹,但不删除文件名中的空格.