Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Scripting to move over 650,000 files and index them in a MS SQL Database

$
0
0

Hello,

I am trying to achieve the above.

The story is that we are changing our ERP system, and in our old system we can save files against records, but this has been done in a cumbersome way. So we manageged to export all of the files into a directory and I am now trying to import them into a zetadocs database.

I have written a scrip using powershell, with the line:

Powershell
#GetItems$files=Get-ChildItem-Path$currentdir-Recurse-Attributes!D

However this takes an age to run (granted there are a fair few records to parse. I am now trying to export an index to a csv file, so that I don't need to run the above, I can instead parse this one file that will have all of the paths for the files in.

My question is, is there a better way to do this? I know it is going to take a while either way, but the faster I can get it to run the better.


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>