.net - Using Powershell to get just the file names from a network folder -


i trying use powershell file names network folder. understanding of get-childitems (please correct me if i'm wrong on this) cmdlet trying download entire object which, in case, series of product installers ranging in size 25mb 315mb per file.

the purpose of script create menu user choose file download. works, except takes 30+ minutes populate menu, unacceptable.

i thinking may need incorporate .net classes make work, if can purely powershell nice. thoughts or suggestions appreciated.

$source = get-childitem "\\networkdrive\release\installs\2012.1.2.3\" 

i found way use .net classes so, strictly speaking, doesn't answer own question. however, job done, here is:

$source = [system.io.directory]::getfiles("\\networkdrive\release\installs\2012.1.2.3", "*.exe") 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -