Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

use defined variable in another command

$
0
0

my code is 

$usb = read-host -p "enter your flash disk leter like g:\backup"

net share backup="$usb" /GRANT:Everyone,Full /remark:"backup"

why is wrong please advise me i search a lot but i do not get my answer 


Viewing all articles
Browse latest Browse all 15028

Trending Articles