
Enviado em 09/04/2026 - 16:54h
Queria que o mesmo código rodásse Tanto no Windows quanto no Linux? Uma pergunta? Como faço isso?PROCEDURE Main()
LOCAL cArquivo := "https://www.ouka.com.br/meu_arquivo.txt"
IF SISTEMA_OPERACIONAL == "windows"
RUN ('cmd /c powershell -Command "Invoke-WebRequest -Uri ' + cArquivo + ' -OutFile x.txt"')
ELSEIF SISTEMA_OPERACIONAL == "linux"
RUN ("wget -O x.txt " + cArquivo)
ENDIF
RETURN