To performance improvement with Powershell -


i new powershell scripting.i have script folder details share network path below. (eg.\\intbmcelb\transport_admin)

$infile = 'c:\paths\pathlist.txt'  $outdir = 'c:\export\'  foreach ($dir in (get-content $infile))   {  $outfile =  join-path $outdir($dir -split '\\')[-1]  $outfilecsv=$outfile+'.csv'  get-childitem -path $dir -filter *.* -recurse | select-object fullname,creationtime,@  {name="size";expression={$_.length}  } | export-csv -path $outfilecsv -encoding ascii -notypeinformation} 

in each network path reading text file, contain lots of data. there around 2500 share paths needs read. takes around 2 days time complete it. can improve performance better?

can add changes above script makes execution time less current total execution time?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -