::Start Code::
# Display Help
if (($Args[0] -eq "-?") -or ($Args[0] -eq "-help")) {
""
"Usage: pullQualityAssesments.ps1 "
" copies the Faxjob over to the Quality Assesments folder."
""
"Example: pullQualityAssesments.ps1 400001 400002"
""
exit
}
$inputdir = "\\someserver\savedfaxjobs\"
$outputdir = "\\someotherserver\Quality Assessments\"
$x = $args.count
$i = 0
do {
$ordernumber = $args[$i]
#write-host $inputdir$ordernumber.faxjob.* $outputdir
$filelist = get-childitem $inputdir$ordernumber.faxjob.*
foreach ($file in $filelist){write-host $file}
$i++}
while ($i -le $x)
::End Code::
Unfortunatly we have 23,000+ files in our Input directory and this script is slower than me pulling them manually. Maybe someday I can revisit this to filter it down to something that works and pulls in only the files it needs.
No comments:
Post a Comment