passing path as a variable in powershell script -


i want pass path varibale(read-host) in powershell script. not working giving error

cannot find path because not exist

my code

$a=read-host $b=read-host copy-item $a $b 

it's hard figure out issue since don't know typing in. put code below script see if paths valid or not:

$a = read-host $b = read-host 'copying {0} {1}' -f $a, $b copy-item $a $b 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -