Powershell - Exercise RRS feed

  • Dotaz

  • Hello guys, i have a question.
    I need a script for this exercise:

    Let assume there is a CSV file that describes connections between cities. It has 3 columns:
    Start – City, where the road starts.
    End – City, where the road ends.
    Distance – distance of the road.


    Implement PowerShell script to find out, if any path exists between 2 cities. It has 2 input parameters:
    Start – city, where the path shall start.
    End – city, where the path shall end.
    Script shall return True, when there exists a direct or indirect (through other cities) path from start to end. In previous example there exists path from Bratislava to Piestany (via Trnava), but there is no path from Bratislava to Kosice.

    Thank you for your help :)

    čtvrtek 1. června 2017 20:04

Všechny reakce