how do i use ALphafs move with progress info

Welcome Forums General PowerShell Q&A how do i use ALphafs move with progress info

This topic contains 2 replies, has 3 voices, and was last updated by

10 months, 2 weeks ago.

  • Author
  • #27983

    Points: 139
    Helping Hand
    Rank: Participant

    I'm trying to utilize alphafs to do home folder moves (past experiences tells me my users will build too deep of file-paths)

    i need to have progress indicators so we know how the process is progressing when we run.

    i can successfully move directories with:
    [Alphaleonis.Win32.Filesystem.Directory]::Move($old, $new)

    the documentation for move with copyprogress is here but i can't figure out how to call the function

    does anyone have a working line of code for this in powershell? (unfortunately they don't provide syntax for powershell usage in the docs)

  • #27984

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    The "CopyMoveProgressRoutine" parameter is expecting a callback function. I'm not certain if it'd work within PowerShell, since PowerShell functions aren't indexed in memory the same way that a C# program would be. Someone a bit more familiar with the dev-heavy side of things may prove me wrong ;). It's possible you could define a script block, and then pass that script block to the method parameter and have it work. But it's definitely more than "a line of code."

  • #98298

    Points: 0
    Rank: Member

The topic ‘how do i use ALphafs move with progress info’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort