-1

I need to read a column in Excel file and search for that file in shared directory.

Example:

File.csv:

10099
20099
93099

You have to search for file name with 10099 and so on and need the path of the file as output.

Community
  • 1
  • 1
user2834105
  • 67
  • 1
  • 1
  • 9
  • SO is not a code-writing service. Please show us what you've tried and explain how the actual results were different from what you expected. – Ansgar Wiechers Mar 24 '15 at 11:37

1 Answers1

0

for read column excell via powershell read this links
link1 linke2 this simple script for find particular name in all partitions

$name = Read-Host "which name you want find"
 Get-PSDrive | where { $_.Provider -match "FileSystem"} | select Root | foreach { Get-ChildItem $_.Root -Recurse -Name $name -ErrorAction 'SilentlyContinue' }

You can change script if you want don't ask user for file name

Community
  • 1
  • 1
Soheil
  • 837
  • 8
  • 17