problem with script

Welcome Forums General PowerShell Q&A problem with script

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
9 months, 1 week ago.

  • Author
    Posts
  • #93064

    Participant
    Points: 0
    Rank: Member

    can you help me to indentificate the error? I with to understand what is wrong

    #script Sofip
    #$rel_Servidor = "U;break-point; ;break-point; :\FOPAG\2015\09 - SET-15\SERVIDOR\normal_CP_30802_000000001.pdf"
    
    $a = read-host "1)Phone List
    2)Open Pensioner_Report
    3)Assigned_Folder 
    4)Siafi White Face
    5)Siafi Black Face
    6)Siapenet_Agency
    7)Next Menu  
    Entre com sua opcao: " 
    
    switch ($a)
    {
    1 {start-process X:\SOFIP\TELEFONES.xlsx}
    2 {write-host "option2"}
    3 {start-process U:\CEDIDOS}
    4 {start-process https://siafi.tesouro.gov.br/senha/public/pages/security/login.jsf }
    5 {start-process firefox.exe; start-process chrome.exe}
    6 {start-process https://www1.siapenet.gov.br/orgao/Login.do?method=inicio }
    7 {$b}
    }
    
    
    $b = read-host "6.1) Segundo menu 1
    6.2) Segundo menu 2
    6.3) Previous Menu 
    Entre com sua opcao: "
    
    switch ($b)
    {
    1 {start-process X:\SOFIP\TELEFONES.xlsx}
    2 {write-host "option2"}
    3 {$a}
    }

    erro in lines 33 and 34, even if I comment the two lines

  • #93199

    Keymaster
    Points: 1,619
    Helping HandTeam Member
    Rank: Community Hero

    It's more helpful if you can post the error messages.

The topic ‘problem with script’ is closed to new replies.