locked
Help to develop simple script RRS feed

  • Question

  • Hi!

    I need help to create a power shell script that reads the contents of a .txt file, stores the result in a variable and from the value of the variable, create a directory with the same name and copy the contents of a folder there.

    It would be something like:

    $data = Get-Content "c:\teste.txt"
    make dir with $data name inside "c:\program_ver\"
    copy all content of "d\program\bin\exe\" to "c:\program_ver\$data"

    Can someone give me some help?

    Thanks!

    40/5000
    Can someone give me some help?

    Thank you!
    Monday, December 3, 2018 5:19 AM

All replies