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.
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.
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