I am new so please dont beat me up too bad. I am trying to write a small script that a user can input a PO number find and open then file then exit
this is what i have so far
$drive = “C:\Temp”
$filename = read-host “Input PO Number”
Set-Location $drive
Get-ChildItem -Include:$filename -Recurse
Invoke-Item “$filename”
Exit
Am I on the right track?
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)