-
Hi Doug Hoping you can help me here, what I'd like to do is to place a progress bar on importing an excel file. I tried with below code, but I very obviously have done this all wrong, as it still takes 3mins to load (without progress bar) and then spends a minute showing the progress bar climbing up, but my $database variable is empty when done. Almost like its loading into the variable and then write-progress is flushing out the variable. I accept that I'm being an idiot somewhere, but would be eternally grateful if you could give me some guidance here :) thank you
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Nevermind, fixed the empty variable issue with $_ at end of write-progress block, though the progress bar becomes redundant because it otherwise would have been in memory by that point. I think I understand now why it's doing this, it's loading the excel file into the variable $datacache and then write-progress is processing that data back into the same variable. I guess I'm just not sure how to show progress on the import-excel part of the job. Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Nothing off the top of head to "enable" a |
Beta Was this translation helpful? Give feedback.
Nothing off the top of head to "enable" a
Progress Bar
. It's a good idea. Didn't design it to take it into consideration. I'll see if I can make some time to look into it.