Author Posts

February 6, 2018 at 1:43 pm

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

February 7, 2018 at 6:16 pm

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