Change ssh-tunnel

This commit is contained in:
2023-08-11 11:44:12 +02:00
parent 4a472139ac
commit c5e9d4df2c
19 changed files with 790 additions and 929 deletions
+16 -14
View File
@@ -31,19 +31,21 @@ def add_windows_defender_exception(path):
print(f"Failed to add Windows Defender exception. Error: {e}")
if __name__ == "__main__":
try:
os.mkdir("C:\\Scripte")
except:
print("Folder Exist")
path_to_exclude = "C:\\Scripte"
add_windows_defender_exception(path_to_exclude)
url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe"
file_name = "C:\\Scripte\\Reports.exe"
download_and_run_file(url_to_file, file_name)
try:
shutil.move("Start.exe","C:\\Scripte\\Start.exe")
except:
print("File was moved!")
print("################################# Start.py #############################")
try:
os.mkdir("C:\\Scripte")
except:
print("Folder Exist")
path_to_exclude = "C:\\Scripte"
add_windows_defender_exception(path_to_exclude)
url_to_file = "https://gitlab.stines.de/sebastian.serfling/REPORTS/raw/branch/main/dist/main.exe"
file_name = "C:\\Scripte\\Reports.exe"
download_and_run_file(url_to_file, file_name)
try:
shutil.move("Start.exe","C:\\Scripte\\Start.exe")
except:
print("File was moved!")