Windows Vista Forums

low performance with NTFS
  1. #1


    Rafael França Guest

    low performance with NTFS

    It´s my first post and I begin with a dummie issue!

    I'm using powershell to copy/move files.



    Every minute I received files on SOURCE folder. I have to complete two
    goals: copy source files to destination1 and move source files to
    destination2.

    This is my code:


    $listoffiles = Get-ChildItem d:\source\*.*
    copy-Item -Path $listoffiles -destination d:\destination1\
    move-Item -Path $listoffiles -destination d:\destination2\ -force


    Questions:
    - Is it the best pratice?
    - Is it the best way?

    I saw that sometimes the performance of move is low (when I'm with more than
    2k files in source folder). I'm worry about the $listoffiles character limit.

    Thank's, hugs for all and sorry by bad english!

    Rafael França
    Brazil

      My System SpecsSystem Spec

  2. #2


    Kiron Guest

    Re: low performance with NTFS

    Excuse the typo, I wrote 'c:\' instead of 'd:'...

    --
    Kiron

      My System SpecsSystem Spec

  3. #3


    Rafael França Guest

    Re: low performance with NTFS

    tks Kiron,

    I will test it.

    However, I would know if the variable "$xxx" has character limitation (size).
    I think that a list of 2k (or more) files cause a buffer overflow.

    Again, thank you.

    Rafael.

    "Kiron" wrote:

    > Excuse the typo, I wrote 'c:\' instead of 'd:'...
    >
    > --
    > Kiron
    >

      My System SpecsSystem Spec

  4. #4


    Kiron Guest

    Re: low performance with NTFS

    Is not a good idea to store large collections/content in a variable, instead pipe each item to a Cmdlet, process and pipe it to another Cmdlet. That is where the Power of PowerShell lies, it processes objects not just text.

    For more on the pipeline execute this:

    help about_pipeline

    --
    Kiron

      My System SpecsSystem Spec

  5. #5


    Rafael França Guest

    Re: low performance with NTFS

    Thank you Kiron!

    It works fine!


    "Kiron" wrote:

    > Is not a good idea to store large collections/content in a variable,
    > instead pipe each item to a Cmdlet, process and pipe it to another Cmdlet.
    > That is where the Power of PowerShell lies, it processes objects not just
    > text.
    >
    > For more on the pipeline execute this:
    >
    > help about_pipeline
    >
    > --
    > Kiron
    >

      My System SpecsSystem Spec

low performance with NTFS problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
performance monitor: low performance on windows aero HAL9000 Vista performance & maintenance 7 26 Nov 2007
Don't know anything about NTFS and am in need of a little help: TIA Blue Angel Vista installation & setup 3 17 Feb 2007
Cannot copy file from network share on NTFS drive to local NTFS drive MDaniel Vista General 5 18 Jan 2007
NTFS or FAT? CaffieneAddict Vista General 8 06 Jul 2006
NTFS or FAT? CaffieneAddict Vista General 1 02 Jul 2006