Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Strange copyitem issue

$
0
0

Hi,

Whe i run this script it creates a folder instead of a file

$base = "c:\FTPDownloads\"
$ext = "*.avi"
$source = "c:\downloads\New Folder (2)\"
$astrix = "*"

$sourcetrix = $source+$ext

$destination = $base+(split-path -leaf $source)
$source
$destination
$sourcetrix

copy-item -path $sourcetrix  -destination $destination

Can anyone help??


Alter De Ruine


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>