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
Post a Comment